add content-type header to ollama /api/show req
This commit is contained in:
parent
6cf0102875
commit
aa37f8cbde
1 changed files with 1 additions and 0 deletions
|
|
@ -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() }),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue