mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-22 11:51:42 +00:00
fix(vis): Fix think message error
This commit is contained in:
parent
000cf5a97b
commit
69fa83cb18
@ -7,12 +7,12 @@ class VisThinking(Vis):
|
||||
@classmethod
|
||||
async def build_message(cls, message: str) -> str:
|
||||
vis = VisThinking()
|
||||
return f"```{vis.vis_tag()}\n{message}\n```"
|
||||
return f"``````{vis.vis_tag()}\n{message}\n``````"
|
||||
|
||||
def sync_display(self, **kwargs) -> str:
|
||||
"""Display the content using the vis protocol."""
|
||||
content = kwargs.get("content")
|
||||
return f"```{self.vis_tag()}\n{content}\n```"
|
||||
return f"``````{self.vis_tag()}\n{content}\n``````"
|
||||
|
||||
@classmethod
|
||||
def vis_tag(cls):
|
||||
|
Loading…
Reference in New Issue
Block a user