From 2dce084e4c941341aa4aee8ffd3ddbf03cb43aac Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 29 May 2024 08:39:19 -0700 Subject: [PATCH] bearer token --- core/llm/llms/Mistral.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/llm/llms/Mistral.ts b/core/llm/llms/Mistral.ts index c7723f67e..d05615db8 100644 --- a/core/llm/llms/Mistral.ts +++ b/core/llm/llms/Mistral.ts @@ -72,6 +72,7 @@ class Mistral extends OpenAI { "Content-Type": "application/json", Accept: "application/json", "x-api-key": this.apiKey ?? "", + Authorization: `Bearer ${this.apiKey}`, }, }); for await (const chunk of streamSse(resp)) {