diff --git a/src/backend/base/langflow/schema/message.py b/src/backend/base/langflow/schema/message.py index f6689dd27..b2e9971a9 100644 --- a/src/backend/base/langflow/schema/message.py +++ b/src/backend/base/langflow/schema/message.py @@ -155,7 +155,7 @@ class Message(Data): return formatted_prompt @classmethod - async def from_template_and_variables(cls, template: str, variables: dict): + async def from_template_and_variables(cls, template: str, **variables): instance = cls(template=template, variables=variables) contents = [{"type": "text", "text": instance.format_text()}] # Get all Message instances from the kwargs