Skip to content

Commit 94f96a1

Browse files
authored
Prepare for objects in tool_call output stream chunk (#1730)
1 parent e038208 commit 94f96a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aap_chatbot/src/useChatbot/useChatbot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ export const useChatbot = () => {
546546
"\n\n`[" +
547547
message.event +
548548
"]`\n```json\n" +
549-
message.data.token +
549+
JSON.stringify(message.data.token) +
550550
"\n```\n",
551551
);
552552
} else if (message.event === "turn_complete") {

ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ export const useChatbot = () => {
544544
"\n\n`[" +
545545
message.event +
546546
"]`\n```json\n" +
547-
message.data.token +
547+
JSON.stringify(message.data.token) +
548548
"\n```\n",
549549
);
550550
} else if (message.event === "turn_complete") {

0 commit comments

Comments
 (0)