Skip to content

Commit ecba0db

Browse files
committed
update
1 parent 3f5d5f0 commit ecba0db

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

β€Žwren-ai-service/src/web/v2/services/conversation.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,11 @@ async def start_conversation(
796796
emit_content_func=self._run_preview_data,
797797
emit_content_func_kwargs={
798798
"data": {
799-
"chart_schema": chart_schema,
800-
"sql": chart_generation_result.get("sql"),
799+
"type": "CHART",
800+
"payload": {
801+
"chart_schema": chart_schema,
802+
"sql": chart_generation_result.get("sql"),
803+
},
801804
},
802805
},
803806
content_block_label="PREVIEW_DATA",
@@ -1001,7 +1004,10 @@ async def start_conversation(
10011004
emit_content_func=self._run_preview_data,
10021005
emit_content_func_kwargs={
10031006
"data": {
1004-
"sql": sql,
1007+
"type": "TABLE",
1008+
"payload": {
1009+
"sql": sql,
1010+
},
10051011
},
10061012
},
10071013
content_block_label="PREVIEW_DATA",

0 commit comments

Comments
Β (0)