mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-02-11 17:15:55 +08:00
Update chatgpt_model.py
This commit is contained in:
@@ -74,7 +74,7 @@ class ChatGPTModel(Model):
|
||||
except openai.error.Timeout as e:
|
||||
log.warn(e)
|
||||
log.warn("[CHATGPT] Timeout")
|
||||
return "我没有收到你的消息"
|
||||
return "我没有收到消息,请稍后重试"
|
||||
except Exception as e:
|
||||
# unknown exception
|
||||
log.exception(e)
|
||||
@@ -109,11 +109,11 @@ class ChatGPTModel(Model):
|
||||
except openai.error.APIConnectionError as e:
|
||||
log.warn(e)
|
||||
log.warn("[CHATGPT] APIConnection failed")
|
||||
return "我连接不到你的网络"
|
||||
return "我连接不到网络,请稍后重试"
|
||||
except openai.error.Timeout as e:
|
||||
log.warn(e)
|
||||
log.warn("[CHATGPT] Timeout")
|
||||
return "我没有收到你的消息"
|
||||
return "我没有收到消息,请稍后重试"
|
||||
except Exception as e:
|
||||
# unknown exception
|
||||
log.exception(e)
|
||||
|
||||
Reference in New Issue
Block a user