浏览代码

Update examples/typescript-simplechat/client.ts

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
Matt Williams 1 年之前
父节点
当前提交
5344f886c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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> {