mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #12658] issue: Exception handling API call from openai API #16674
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 @tblattner on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12658
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.0
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
N/A
Confirmation
README.md.Expected Behavior
The user's bad behavior should report the error message and not produce an exception.
63533c9e3a/backend/open_webui/main.py (L1111)The exception accesses a metadata dictionary, and in this case its not being created in time due to the exception occurring before line 1078 in main.py
Actual Behavior
A bad request is being sent via the OpenAI API from a client to the openwebui chat/completions API.
The error associated with this message is producing the exception:
Steps to Reproduce
Run script using current version of openai (1.72.0)
Logs & Screenshots
The error associated with this message is producing the exception:
Additional Information
None
@tjbck commented on GitHub (Apr 9, 2025):
Should be addressed in dev.
@tblattner commented on GitHub (Apr 9, 2025):
This is great to hear! Do you happen to know when the next release is scheduled?
@alexveli1 commented on GitHub (Apr 10, 2025):
Same issue here. Using API key from user profile.
Container logs show: