add content-type header to ollama /api/show req

This commit is contained in:
Nate Sesti 2024-07-03 14:31:02 -07:00
parent 6cf0102875
commit aa37f8cbde

View file

@ -26,6 +26,7 @@ class Ollama extends BaseLLM {
method: "POST",
headers: {
Authorization: `Bearer ${this.apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ name: this._getModel() }),
})