From 6387942e76c6c14b39aacd29b273dcd254ece166 Mon Sep 17 00:00:00 2001 From: Kadxy <2230318258@qq.com> Date: Fri, 26 Jul 2024 21:48:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Ats=20type=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/client/chatCompletions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/chatCompletions.ts b/app/client/chatCompletions.ts index ec67d5b..c9ad089 100644 --- a/app/client/chatCompletions.ts +++ b/app/client/chatCompletions.ts @@ -278,7 +278,7 @@ export class ChatCompletionAPI { this.path(), { method: "POST", - headers: getHeadersWithApiKey(this.apiKey), + headers: getHeadersWithApiKey(this.apiKey) as any, body: JSON.stringify(options), signal: abortSignal, onmessage: (msg) => {