mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-19 05:05:58 +08: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…
x
Reference in New Issue
Block a user