From b430deab15402302f61b51c2f2fc82964671312e Mon Sep 17 00:00:00 2001 From: amuwall Date: Sat, 1 Mar 2025 10:20:29 +0800 Subject: [PATCH] fix: fix typing error in args --- backend/open_webui/utils/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/task.py b/backend/open_webui/utils/task.py index 5663ce2ac..3a8b4b0a4 100644 --- a/backend/open_webui/utils/task.py +++ b/backend/open_webui/utils/task.py @@ -104,7 +104,7 @@ def replace_prompt_variable(template: str, prompt: str) -> str: def replace_messages_variable( - template: str, messages: Optional[list[str]] = None + template: str, messages: Optional[list[dict]] = None ) -> str: def replacement_function(match): full_match = match.group(0)