Open SimFG opened 4 months ago
If someone has better ideas, suggestions are welcome. I have opened the pr: https://github.com/zilliztech/GPTCache/pull/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