mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
issue: Can't use logit_bias in custom models. Got "400: Invalid type for 'logit_bias': expected an object, but got a string instead." #4274
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 @zzq1015 on GitHub (Mar 6, 2025).
Originally assigned to: @dannyl1u on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Amazon Linux 2023
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
logit_bias gets applied, sent to OpenAI as an object
Actual Behavior
Whenever I use logit_bias in custom models, I got "400: Invalid type for 'logit_bias': expected an object, but got a string instead."
Steps to Reproduce
Logs & Screenshots
Additional Information
In JSON preview, I got logit_bias as a string, not an object.
However, if you use the sidebar "Chat Controls" menu it will work.