mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-24 12:45:45 +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
|
@classmethod
|
||||||
async def build_message(cls, message: str) -> str:
|
async def build_message(cls, message: str) -> str:
|
||||||
vis = VisThinking()
|
vis = VisThinking()
|
||||||
return f"```{vis.vis_tag()}\n{message}\n```"
|
return f"``````{vis.vis_tag()}\n{message}\n``````"
|
||||||
|
|
||||||
def sync_display(self, **kwargs) -> str:
|
def sync_display(self, **kwargs) -> str:
|
||||||
"""Display the content using the vis protocol."""
|
"""Display the content using the vis protocol."""
|
||||||
content = kwargs.get("content")
|
content = kwargs.get("content")
|
||||||
return f"```{self.vis_tag()}\n{content}\n```"
|
return f"``````{self.vis_tag()}\n{content}\n``````"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def vis_tag(cls):
|
def vis_tag(cls):
|
||||||
|
Loading…
Reference in New Issue
Block a user