mirror of
https://github.com/open-webui/open-webui
synced 2025-06-03 11:16:48 +00:00
fix: internal server error when calling completions API with non-existent model names
Signed-off-by: Ho Kim <ho.kim@ulagbulag.io>
This commit is contained in:
parent
aefb3117db
commit
1efae95a36
@ -1053,6 +1053,9 @@ async def chat_completion(
|
||||
model_item = form_data.pop("model_item", {})
|
||||
tasks = form_data.pop("background_tasks", None)
|
||||
|
||||
# placeholder
|
||||
metadata = {}
|
||||
|
||||
try:
|
||||
if not model_item.get("direct", False):
|
||||
model_id = form_data.get("model", None)
|
||||
|
Loading…
Reference in New Issue
Block a user