From 7145c93d6c761790f72371620f53cb1b06937e27 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Tue, 18 Jun 2024 18:37:46 -0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(Prompt.py):=20refactor=20?= =?UTF-8?q?code=20to=20simplify=20prompt=20text=20assignment=20in=20Prompt?= =?UTF-8?q?Component=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/components/prompts/Prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/components/prompts/Prompt.py b/src/backend/base/langflow/components/prompts/Prompt.py index fc420d255..9cdec88cc 100644 --- a/src/backend/base/langflow/components/prompts/Prompt.py +++ b/src/backend/base/langflow/components/prompts/Prompt.py @@ -21,5 +21,5 @@ class PromptComponent(Component): self, ) -> Message: prompt = await Message.from_template_and_variables(**self._arguments) - self.status = prompt.format_text() + self.status = prompt.text return prompt