mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[GH-ISSUE #9402] Hi models with system prompts no longer work via /api/chat/completions in v0.5.9 return Error 400 Bad Request #102483
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spammenotinoz on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9402
Hi minor bug in v0.5.9 impacting models with system prompts via API.
Post;
{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "What is the meaning of life?"
}
]
}
Returns:
{
"detail": "'NoneType' object has no attribute 'items'"
}
Workaround: Login to Open-WebUI and clear the system prompt, for impacted models.
Kind regards
@dpk-it commented on GitHub (Feb 5, 2025):
I have the same issue
@Yppiti commented on GitHub (Feb 5, 2025):
+1 for having this same issue. Removing the system prompt fixes this but defeats the purpose of using a custom model. No form of "refreshing" fixes this for multiple users so far.
@spammenotinoz commented on GitHub (Feb 5, 2025):
I can repeat via curl and postman. Sure you were not testing against a model that doesn’t have a custom system prompt?
@spammenotinoz commented on GitHub (Feb 5, 2025):
I think you misunderstood the.bug, it impacts api users not web interface users.
@tjbck commented on GitHub (Feb 5, 2025):
Addressed with
ff84c120f5, 0.5.10 will be released shortly@spammenotinoz commented on GitHub (Feb 5, 2025):
Thank-you.
@Yppiti commented on GitHub (Feb 5, 2025):
Just a heads up that I applied this as a hotfix directly to the affected file ("utils/payload.py") with success. Will officially patch when release is out.