Browse Source

Update examples/typescript-simplechat/client.ts

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
Matt Williams 1 year ago
parent
commit
5344f886c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/typescript-simplechat/client.ts

+ 1 - 1
examples/typescript-simplechat/client.ts

@@ -45,7 +45,7 @@ async function chat(messages: Message[]): Promise<Message> {
     }
 
   }
-  return { role: "assistant", content: content.join("") };
+  return { role: "assistant", content: content };
 }
 
 async function askQuestion(): Promise<void> {