fix: missing Content-Type header in OllamaEmbeddingsProvider (#1855)

This commit is contained in:
Simo 2024-07-29 04:40:01 +03:00 • committed by GitHub
parent ff821ff159
commit 841294d15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,9 @@ async function embedOne(
model: options.model,
prompt: chunk,
}),
headers: {
"Content-Type": "application/json",
},
});
if (!resp.ok) {