mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #22597] issue: logit_bias parameter error #74362
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 @TTTap1xxx on GitHub (Mar 11, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22597
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.8.5
Ollama Version (if applicable)
No response
Operating System
MacOS 26.3.1
Browser (if applicable)
Safari
Confirmation
README.md.Expected Behavior
pasting 5432:100, 413:-100 should make model prefer some tokens more, tried different ways to set it including the exact same what mentioned in placeholder:
placeholder="Enter comma-separated "token:bias_value" pairs (example: 5432:100, 413:-100)"
Actual Behavior
'dict' object has no attribute 'split'
or some different errors, also tried patching convert_logit_bias_input_to_json function and this one worked for me:
def convert_logit_bias_input_to_json(user_input) -> Optional[str]:
if not user_input:
return None
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@tjbck commented on GitHub (Mar 11, 2026):
e34ed72e1e