bearer token

This commit is contained in:
Nate Sesti 2024-05-29 08:39:19 -07:00
parent 19b5424790
commit 2dce084e4c

View file

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