chatgpt-on-wechat icon indicating copy to clipboard operation
chatgpt-on-wechat copied to clipboard

建议将openai的部分代码更新到最新版本

Open zhangshuhui241 opened this issue 10 months ago • 2 comments

⚠️ 搜索是否存在类似issue

  • [X] 我已经搜索过issues和disscussions,没有发现相似issue

总结

openai接口已经升级到1.20版本,而本项目的openai接口仍然使用0.28版本,其中很多api都做了重大修改,无法兼容了。恳请维护团队升级openai接口相关代码,支持1.0以上的版本

举例

open.Completions相关方法已经不再支持了

动机

我使用自己训练的LLM来模拟了一个openai接口,现在与本项目旧版本openai版本出现兼容性问题。

zhangshuhui241 avatar Apr 17 '24 13:04 zhangshuhui241

确实 Exception: string indices must be integers

imhut avatar Apr 25 '24 10:04 imhut

自己改一改吧,跟open AI对接的代码总共没有几行 按照这个文档 https://platform.openai.com/docs/assistants/migration

dazhifoc avatar May 26 '24 12:05 dazhifoc