浏览代码

fix: fix typing error in args

amuwall 2 月之前
父节点
当前提交
b430deab15
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/utils/task.py

+ 1 - 1
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)