소스 검색

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