Explorar o código

Merge pull request #11009 from amuwall/fix-typing-error

fix: typing error in replace_messages_variable func args
Timothy Jaeryang Baek hai 2 meses
pai
achega
094d777e55
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)