You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Example would be something like
this will just silently not use the cache every time because the
cache.directory?
check in theOpenAI
constructor fails and therefore doesn't wrap in a cacheThe text was updated successfully, but these errors were encountered: