Update examples/typescript-simplechat/client.ts

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
This commit is contained in:
Matt Williams 2023-12-07 13:40:37 -08:00 committed by GitHub
parent 6cc823c9b5
commit 5344f886c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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> {