Explorar o código

Update examples/typescript-simplechat/client.ts

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
Matt Williams hai 1 ano
pai
achega
5344f886c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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> {