mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 06:07:13 +08:00
Signed-off-by: 6vision <vision_wangpc@sina.com>
This commit is contained in:
@@ -97,7 +97,7 @@ class ClaudeAPIBot(Bot, OpenAIImage):
|
|||||||
}
|
}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
need_retry = retry_count < 2
|
need_retry = retry_count < 2
|
||||||
result = {"completion_tokens": 0, "content": "我现在有点累了,等会再来吧"}
|
result = {"total_tokens": 0, "completion_tokens": 0, "content": "我现在有点累了,等会再来吧"}
|
||||||
if isinstance(e, openai.error.RateLimitError):
|
if isinstance(e, openai.error.RateLimitError):
|
||||||
logger.warn("[CLAUDE_API] RateLimitError: {}".format(e))
|
logger.warn("[CLAUDE_API] RateLimitError: {}".format(e))
|
||||||
result["content"] = "提问太快啦,请休息一下再问我吧"
|
result["content"] = "提问太快啦,请休息一下再问我吧"
|
||||||
|
|||||||
Reference in New Issue
Block a user