We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f5d5f0 commit ecba0dbCopy full SHA for ecba0db
βwren-ai-service/src/web/v2/services/conversation.py
@@ -796,8 +796,11 @@ async def start_conversation(
796
emit_content_func=self._run_preview_data,
797
emit_content_func_kwargs={
798
"data": {
799
- "chart_schema": chart_schema,
800
- "sql": chart_generation_result.get("sql"),
+ "type": "CHART",
+ "payload": {
801
+ "chart_schema": chart_schema,
802
+ "sql": chart_generation_result.get("sql"),
803
+ },
804
},
805
806
content_block_label="PREVIEW_DATA",
@@ -1001,7 +1004,10 @@ async def start_conversation(
1001
1004
1002
1005
1003
1006
- "sql": sql,
1007
+ "type": "TABLE",
1008
1009
+ "sql": sql,
1010
1011
1012
1013
0 commit comments