Skip to content

Commit 0f51404

Browse files
authored
Merge pull request #910 from peiwenYe/master
修复nl2pandas bug
2 parents 8fb01a4 + 3a120c7 commit 0f51404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/core/components/v2/llms/nl2pandas/component.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,6 @@ def tool_eval(self, query: str, table_info: str, **kwargs):
126126
message = super().run(message=msg, table_info=table_info, stream=True, temperature=temperature,
127127
top_p=top_p)
128128

129-
yield self.create_output(type="text", text=str(message.content), name="text", usage=message.token_usage)
129+
for data in message.content:
130+
yield self.create_output(type="text", text=data, name="text", usage=message.token_usage)
130131

0 commit comments

Comments
 (0)