From 89f5df05e695dd4ad5e5a53c599e42a3084a5dbc Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Tue, 18 Jun 2024 11:09:06 -0300 Subject: [PATCH] refactor: Update from_template_and_variables method signature in Message class --- src/backend/base/langflow/schema/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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