GaiZhenbiao / ChuanhuChatGPT

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT
GNU General Public License v3.0
15.17k stars 2.29k forks source link

[Bug]: o1-mini模型对话报错 #1160

Closed crosswk closed 1 week ago

crosswk commented 1 week ago

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

错误表现

o1-mini不支持system字段了。

复现操作

正常部署最新版本

错误日志

前端报错:
☹️发生了错误:Unsupported value: 'messages[0].role' does not support 'system' with this model. (request id: 2024091403134518573335634751935)

后端报错:
Exception: {"error":{"message":"Unsupported value: 'messages[0].role' does not support 'system' with this model. (request id: 2024091403134518573335634751935)","type":"invalid_request_error","param":"messages[0].role","code":"unsupported_value"}}

运行环境

帮助解决

补充说明

No response

GaiZhenbiao commented 1 week ago

应该修复了

crosswk commented 1 week ago

o1还不支持流式传输了,能否选择这个模型是,自动关闭流式传输。Unsupported value: 'stream' does not support true with this model. Only the default (false) value is supported. (request id: 202409140926411873031618470080) @GaiZhenbiao

GaiZhenbiao commented 1 week ago

https://github.com/GaiZhenbiao/ChuanhuChatGPT/commit/226a9b21daa7f43569b40e057ed766f703c47c6a 中,o1 模型的流式传输功能被默认关闭