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

fix: typing error in replace_messages_variable func args
This commit is contained in:
Timothy Jaeryang Baek 2025-02-28 18:34:24 -08:00 committed by GitHub
commit 094d777e55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)