-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue]: Unable to Set Cache Directory in Read-Only File System Environments #1074
Comments
try: |
This should be part of the llm_config, which we should use a typed class rather than a dict that user must guess it's schema. Trying to address this in: #1095 |
thanks @sonichi that resolved it |
this is still broken for Lambda deployments. currently investigating. it's something to do with this hardcoded ended up monkey patching
|
I'm having the same issue even with the provided solutions. Has anyone been able to fix it? |
Describe the issue
I am using the Autogen library in an AWS Lambda environment and I am encountering an issue related to the cache directory.
In AWS Lambda, the file system is read-only except for the /tmp directory. However, when I use the GPTAssistantAgent, UserProxyAgent, GroupChat, or GroupChatManager classes in the Autogen library, it seems that they are trying to create a cache directory at .cache/41, which is not writable in AWS Lambda. This results in an OSError: [Errno 30] Cache directory ".cache/41" does not exist and could not be created.
I tried to set the cache directory to /tmp using the Completion.set_cache(cache_path_root="/tmp") method, but it seems that the GPTAssistantAgent, UserProxyAgent, GroupChat, or GroupChatManager classes are creating their own instances of the Completion class, which use the default cache directory .cache.
Unfortunately, the Autogen library does not seem to provide a way to change the cache directory for these classes directly. I would like to ask if there is a way to set the cache directory for these classes to /tmp or if there is a workaround for this issue.
I would appreciate any assistance you could provide.
Steps to reproduce
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: