diff --git a/examples/typescript-simplechat/client.ts b/examples/typescript-simplechat/client.ts index 9e7a93b931..3e571ab6c6 100644 --- a/examples/typescript-simplechat/client.ts +++ b/examples/typescript-simplechat/client.ts @@ -45,7 +45,7 @@ async function chat(messages: Message[]): Promise { } } - return { role: "assistant", content: content.join("") }; + return { role: "assistant", content: content }; } async function askQuestion(): Promise {