AlibabaResearch / DAMO-ConvAI

DAMO-ConvAI: The official repository which contains the codebase for Alibaba DAMO Conversational AI.
MIT License
1.08k stars 176 forks source link

无效的令牌 (request id: 20240131144349134226063EtGrSnG9) #124

Closed lugangmail closed 5 months ago

lugangmail commented 5 months ago

当我在gradio界面输入问题并运行时,后台有如下报错: 请问有什么问题? 关键是这个无效的令牌指的是调用哪个API?

ChatGPT: (Bot) Please provide the formula. Client: (User) (5+3)6 ChatGPT: (API call) [Calculator(formula='(5+3)6')] (wait for the result) Client: (API return) {'result': 48} ChatGPT: (Bot) The result of (5+3)*6 is 48. Client: (User) Thank you.

Now, we start. The following is the first utterence of Client: 2024-01-31 14:43:47,631 - root - INFO - Logging : user input is - I'm going on vacation to Sanya next week, can you help me book a hotel? 2024-01-31 14:43:47,756 - root - INFO - Logging : payload is - {'temperature': 1.0, 'top_p': 1.0, 'n': 1} 无效的令牌 (request id: 20240131144349134226063EtGrSnG9) 无效的令牌 (request id: 20240131144351119033007pPH5oRM2) 2024-01-31 14:43:52,768 - asyncio - ERROR - Task exception was never retrieved future: <Task finished name='v8fi7b5il1_2' coro=<Queue.process_events() done, defined at D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\gradio\queueing.py:343> exception=AttributeError("'AsyncRequest' object has no attribute '_json_response_data'")> Traceback (most recent call last): File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\gradio\queueing.py", line 370, in process_events while response.json.get("is_generating", False): File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\gradio\utils.py", line 695, in json return self._json_response_data AttributeError: 'AsyncRequest' object has no attribute '_json_response_data' 无效的令牌 (request id: 2024013114435350511718CQ9smRSZ) 无效的令牌 (request id: 20240131144354119147761PifZUn3r) 无效的令牌 (request id: 20240131144358890246494Jws8660B) 无效的令牌 (request id: 20240131144404857715493AiI5s972)

lugangmail commented 5 months ago

不知为何我vpn+国内反向代理使用requests就是不行,我换了openai就可以了。这个问题闭环了。 可是又有新的问题,不知道是否有关联。