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
Before openai 1.x, the interface was in the form of a static method of the class, such as openai.ChatCompletion.create. But in openai 1.x, objects are used, like:
So now there is no way to use the previous method of simply replacing the package name to achieve seamless access to gptcache. At present, the way I can think of is to proxy the relevant interfaces of openai through methods, such as:
If someone has better ideas, suggestions are welcome.
I have opened the pr: #614.
I don’t merge the pr and bump the new version. I actually want to hear more people’s suggestions.
What would you like to be added?
Before openai 1.x, the interface was in the form of a static method of the class, such as
openai.ChatCompletion.create
. But in openai 1.x, objects are used, like:So now there is no way to use the previous method of simply replacing the package name to achieve seamless access to gptcache. At present, the way I can think of is to proxy the relevant interfaces of openai through methods, such as:
Why is this needed?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: