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

Unsupported value: 'stream' does not support true with this model. Supported values are: false #5407

Open
Payne-Wang opened this issue Jan 12, 2025 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Payne-Wang
Copy link

📦 Environment

Docker

📌 Version

lobehub/lobe-chat:latest

💻 Operating System

Ubuntu

🌐 Browser

Chrome

🐛 Bug Description

{
"error": {
"message": "Unsupported value: 'stream' does not support true with this model. Supported values are: false.",
"type": "invalid_request_error",
"param": "stream",
"code": "unsupported_value"
},
"endpoint": "http://:/v1",
"provider": "openai"
}

📷 Recurrence Steps

刚更新好的lobechat(lobehub/lobe-chat:latest),在docker的yml文件中添加上o1之后,报上述错误

注:
o1模型是openai的官方key+newapi中转,再接入lobechat的

看了一下之前的issue,似乎stream这个bug已经解决,不知为啥在最近的镜像中仍然可以被复现

请大佬看下,谢谢!

🚦 Expected Behavior

No response

📝 Additional Information

No response

@Payne-Wang Payne-Wang added the 🐛 Bug Something isn't working | 缺陷 label Jan 12, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 12, 2025
@lobehubbot
Copy link
Member

👀 @Payne-Wang

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Jan 12, 2025

Hello, @Payne-Wang! I'm here to assist you with any bugs, questions, or contributions. Let's tackle this issue together!

The error "Unsupported value: 'stream' does not support true with this model" occurs because the o1 model has beta limitations and does not support streaming when using a custom proxy endpoint. To resolve this issue, ensure you are using OpenAI's official API endpoint, as the o1 model supports streaming through OpenAI's official API. Additionally, update your Docker image to the latest version from Docker Hub, as this issue was resolved in version #5183 [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Copy link

dosubot bot commented Jan 12, 2025

The error you're encountering, "Unsupported value: 'stream' does not support true with this model," is related to the OpenAI o1 model's limitations regarding streaming. This issue was previously addressed and resolved in pull request #5183. To resolve this, ensure that you are using the latest Docker image from Docker Hub, as the fix should be included in the most recent version [1].

Additionally, if you are using a custom proxy endpoint, consider switching to OpenAI's official API endpoint. The o1 model supports streaming through the official API but may not through custom proxy endpoints [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@Sen-CaPoo
Copy link

這個問題與 #5063 同樣問題,這邊同樣希望可以獲得 Lobechat 更新支援。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This issue is the same as #5063. We also hope to get Lobechat update support.

@Richardallis411
Copy link

Richardallis411 commented Jan 12, 2025 via email

Copy link

dosubot bot commented Jan 12, 2025

The issue you're experiencing with the o1 model's streaming capabilities is related to its beta limitations when using a custom proxy endpoint. This problem was addressed in pull request #5183, which fixed the o1Models list. To resolve this, ensure you are using the latest Docker image for LobeChat, as the fix is included in the most recent version [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@qyhfrank
Copy link

Same issue observed on the latest image version.

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
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

5 participants