autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[Issue]: How can I disable caching?

Open tyler-suard-parker opened this issue 1 year ago • 3 comments

Describe the issue

In client.py, there is a function where a database is created for caching. I am running my AutoGen code on a machine without any file/folder creation privileges, so I am getting an error when AutoGen tries to create a database for caching. How can I turn caching off?

Thank you.

Steps to reproduce

  1. Use Azure Web Apps
  2. Deploy some AutoGen code to the web app
  3. Run it

Screenshots and logs

image

Additional Information

No response

tyler-suard-parker avatar Jul 16 '24 21:07 tyler-suard-parker

I found the answer, add "cache_seed": None, to the LLM config.

tyler-suard-parker avatar Jul 16 '24 21:07 tyler-suard-parker

Ok I just looked at my llm_config and it already had the cache seed set to none. How do I turn off caching?

tyler-suard-parker avatar Jul 16 '24 21:07 tyler-suard-parker

https://microsoft.github.io/autogen/docs/topics/llm-caching/#disabling-cache

@tyler-suard-parker this should help.

Hk669 avatar Jul 17 '24 07:07 Hk669

Not able to disable cache (seed 42), any suggestions on how to disable it. By default setting to 42. manager.initiate_chat(cache=None) - not able to disable cache, is this expected behavior? https://microsoft.github.io/autogen/0.2/docs/reference/agentchat/conversable_agent#initiate_chat

bikma avatar Oct 16 '24 16:10 bikma