Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 有时出现空消息且页面无报错 #1177

Open
1 of 2 tasks
hengyanqwe opened this issue Dec 17, 2024 · 2 comments
Open
1 of 2 tasks

[Bug]: 有时出现空消息且页面无报错 #1177

hengyanqwe opened this issue Dec 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hengyanqwe
Copy link

这个bug是否已存在现有issue了?

  • 我确认没有已有issue,且已阅读常见问题

错误表现

image

复现操作

不断打开新对话跟gpt打招呼,有时就会出现

错误日志

2024-12-17 10:56:08,092 [INFO] [_client.py:1026] HTTP Request: GET https://api.gradio.app/gradio-messaging/en "HTTP/1.1 200 OK"
2024-12-17 10:56:09,521 [INFO] [config.py:118] 已设置可用模型:['GPT3.5 Turbo', 'GPT-4o', 'o1-preview']
2024-12-17 10:56:09,521 [INFO] [config.py:123] 已添加额外的模型:[]
2024-12-17 10:56:09,521 [INFO] [config.py:202] OpenAI API Base set to: https://api.zhizengzeng.com/v1
2024-12-17 10:56:09,521 [INFO] [config.py:331] 默认模型设置为了:GPT3.5 Turbo
2024-12-17 10:56:10,612 [INFO] [utils.py:160] NumExpr defaulting to 1 threads.
fatal: detected dubious ownership in repository at '/home/ChuanhuChatGPT'
To add an exception for this directory, call:

	git config --global --add safe.directory /home/ChuanhuChatGPT
fatal: detected dubious ownership in repository at '/home/ChuanhuChatGPT'
To add an exception for this directory, call:

	git config --global --add safe.directory /home/ChuanhuChatGPT
2024-12-17 10:57:02,404 [INFO] [ChuanhuChatbot.py:506] Get User Name: chen_ql
2024-12-17 10:57:02,405 [INFO] [models.py:38] 正在加载 OpenAI 模型: GPT3.5 Turbo
2024-12-17 10:57:02,408 [INFO] [models.py:149] 模型设置为了: GPT3.5 Turbo
2024-12-17 10:59:22,113 [INFO] [models.py:38] 正在加载 OpenAI 模型: GPT-4o
2024-12-17 10:59:22,115 [INFO] [models.py:149] 模型设置为了: GPT-4o
2024-12-17 10:59:30,542 [INFO] [base_model.py:615] 用户chen_ql的输入为:�[34m你好�[0m
2024-12-17 10:59:32,372 [INFO] [base_model.py:703] 回答为:�[34m你好!有什么我可以帮助你的吗?�[0m
2024-12-17 10:59:32,372 [INFO] [base_model.py:709] Tokens per second:16.959412610912512
2024-12-17 10:59:37,105 [INFO] [base_model.py:615] 用户chen_ql的输入为:�[34m你好�[0m
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
Traceback (most recent call last):
  File "/home/ChuanhuChatGPT/modules/models/OpenAIVision.py", line 250, in _decode_chat_response
    finish_reason = chunk["finish_details"]
KeyError: 'finish_details'
2024-12-17 10:59:41,836 [INFO] [base_model.py:703] 回答为:�[34m�[0m
2024-12-17 10:59:41,836 [INFO] [base_model.py:709] Tokens per second:4.439494087378722

运行环境

  • OS:
  • Browser:
  • Gradio version:
  • Python version:

帮助解决

  • 我愿意协助解决!

补充说明

No response

@hengyanqwe hengyanqwe added the bug Something isn't working label Dec 17, 2024
@hengyanqwe
Copy link
Author

提议:加一条browserconsole的配置,输出接收到的json信息,不然我都不好排查是川虎chat的原因还是api提供商的原因

@crosswk
Copy link

crosswk commented Dec 19, 2024

和已有的Bug1169、Bug1176是一样的,我按照Bug1169作者的描述,加了几行代码,暂时解决了这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants