Skip to content
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

Caching silently does not work for invalid path #4

Open
backus opened this issue Apr 4, 2023 · 0 comments
Open

Caching silently does not work for invalid path #4

backus opened this issue Apr 4, 2023 · 0 comments

Comments

@backus
Copy link
Owner

backus commented Apr 4, 2023

Example would be something like

cache_dir = Pathname.new('~/.cache/openai') # Note that this isn't expanded
openai = OpenAI.create(key, cache: cache_dir)

this will just silently not use the cache every time because the cache.directory? check in the OpenAI constructor fails and therefore doesn't wrap in a cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant