refactor: Update PromptComponent to correctly set the status message and improve code structure
This commit is contained in:
parent
a07224f30d
commit
d5f73dab70
1 changed files with 2 additions and 2 deletions
|
|
@ -24,5 +24,5 @@ class PromptComponent(Component):
|
|||
kwargs = self._arguments.copy()
|
||||
kwargs["text"] = prompt.format_text()
|
||||
prompt_message = Message(**kwargs)
|
||||
self.status = prompt_message
|
||||
return prompt
|
||||
self.status = prompt.format_text()
|
||||
return prompt_message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue