mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-19 04:37:28 +08:00
The code was directly importing openai.error which fails with openai>=1.0. The project already has an openai_compat.py compatibility layer that handles both old (<1.0) and new (>=1.0) OpenAI SDK versions. This commit updates chat_gpt_bot.py to use the compatibility layer. Related: #2687