mirror of
https://github.com/open-webui/open-webui
synced 2025-03-09 14:10:46 +00:00
Merge pull request #11009 from amuwall/fix-typing-error
fix: typing error in replace_messages_variable func args
This commit is contained in:
commit
094d777e55
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user