bupticybee / ChineseAiDungeonChatGPT

中文版的ai地牢,直接使用的openai的ChatGPT api作为讲故事的模型。
1.39k stars 142 forks source link

Failed to refresh session是token过期了吗? #38

Open JoeyTrue opened 1 year ago

JoeyTrue commented 1 year ago

Traceback (most recent call last): File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 230, in refresh_session raise Exception(f'Response code: {response.status_code} \n Response: {response.text}') Exception: Response code: 200 Response: {}

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "E:\browser_download\ChineseAiDungeonChatGPT-0.2.0\app.py", line 164, in story_teller = StoryTeller(config, story_background) File "E:\browser_download\ChineseAiDungeonChatGPT-0.2.0\story.py", line 10, in init self.chatbot = Chatbot(config, conversation_id=None) File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 81, in init self.retry_refresh() File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 92, in retry_refresh raise exc File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 88, in retry_refresh self.refresh_session() File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 245, in refresh_session raise Exception("Failed to refresh session!") from exc Exception: Failed to refresh session!

bupticybee commented 1 year ago

是的,openai对接口做了很多限制