Преглед на файлове

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(
 def replace_messages_variable(
-    template: str, messages: Optional[list[str]] = None
+    template: str, messages: Optional[list[dict]] = None
 ) -> str:
 ) -> str:
     def replacement_function(match):
     def replacement_function(match):
         full_match = match.group(0)
         full_match = match.group(0)