From ae0554224adf81ff0a6ae27828db79f1f6bdf3e6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 19 Feb 2025 18:22:31 -0800 Subject: [PATCH] refac --- backend/open_webui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index b4ea2e1ec..346d28d6c 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -987,7 +987,7 @@ async def chat_completion( "files": form_data.get("files", None), "features": form_data.get("features", None), "variables": form_data.get("variables", None), - "model": model_info, + "model": model_info.model_dump() if model_info else model, "direct": model_item.get("direct", False), **( {"function_calling": "native"}