fix: missing Content-Type header in OllamaEmbeddingsProvider (#1855)
This commit is contained in:
parent
ff821ff159
commit
841294d15f
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ async function embedOne(
|
|||
model: options.model,
|
||||
prompt: chunk,
|
||||
}),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
if (!resp.ok) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue