Преглед изворни кода

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)