Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Update examples/typescript-simplechat/client.ts

Matt Williams6cc823c9b572
diff --git a/examples/typescript-simplechat/client.ts b/examples/typescript-simplechat/client.ts
index 5d703a75e..9e7a93b93 100644
--- a/examples/typescript-simplechat/client.ts
+++ b/examples/typescript-simplechat/client.ts
@@ -30,7 +30,7 @@ async function chat(messages: Message[]): Promise<Message> {
if (!reader) {
throw new Error("Failed to read response body")
}
- const content: string[] = []
+ let content = ""
while (true) {
const { done, value } = await reader.read()
if (done) {
@@ -41,7 +41,7 @@ async function chat(messages: Message[]): Promise<Message> {
if (json.done === false) {
process.stdout.write(json.message.content);
- content.push(json.message.content)
+ content += json.message.content
}
}