From 5344f886c8e4800df1ac23a207921acd37cb5300 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Thu, 7 Dec 2023 13:40:37 -0800 Subject: [PATCH] Update examples/typescript-simplechat/client.ts Co-authored-by: Bruce MacDonald --- examples/typescript-simplechat/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/typescript-simplechat/client.ts b/examples/typescript-simplechat/client.ts index 9e7a93b9..3e571ab6 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 {