-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
openai 使用gpt-4.5-preview模型异常 #7167
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
Comments
👀 @ahuai Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
The issue you're encountering is due to an extra space in the model ID "gpt-4.5-preview " when making the OpenAI API request. This extra space causes the API to return an "invalid model ID" error. To resolve this, ensure that the model ID is correctly formatted without any trailing spaces before making the request. You can check the part of the code where the model ID is set or modified, which is in the Additionally, you might want to review any part of the code that constructs the request payload to ensure no spaces are inadvertently added. The payload is constructed in the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
|
✅ @ahuai This issue is closed, If you have any questions, you can comment and reply. |
|
📦 Platform
Other
📦 Deploymenet mode
client db (lobe-chat image)
📌 Version
1.75.2
💻 Operating System
Windows
🌐 Browser
Chrome
🐛 Bug Description
我通过拉取最新1.75.2本地启动项目 使用openai 的模型gpt-4.5-preview时发现请求异常 其他模型都正常

通过排查发现 请在请求webapi/chat/openai接口是 前端携带的参数model: "gpt-4.5-preview " 多了个空格 如图所示
导致请求返回"message": "invalid model ID"
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: