mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
Merge pull request #11009 from amuwall/fix-typing-error
fix: typing error in replace_messages_variable func args
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user