dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Cache appears to be permanently turned on in dspy-ai-2.4.5

Open oekekezie opened this issue 4 months ago • 1 comments

In this version of DSPy, this looks like a bug in the file "dsp/modules/cache_utils.py":

cache_turn_on = True

It should probably be:

cache_turn_on = os.environ.get('DSP_CACHEBOOL', 'True').lower() != 'false'

Otherwise, it seems like the cache can't be turned off? I made the change and my program is no longer retrieving cached responses.

oekekezie avatar Apr 26 '24 01:04 oekekezie

Hi @oekekezie , the current pypi version for dspy is not updated with latest PR changes. Please install from source as needed while we work through updating dspy-ai!

arnavsinghvi11 avatar Apr 27 '24 22:04 arnavsinghvi11