fix: use openai_compat layer for error handling

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
This commit is contained in:
JasonOA888
2026-03-10 00:33:45 +08:00
parent 71c8436e90
commit f1e888f3de
2 changed files with 2 additions and 2 deletions

0
0 Normal file
View File