Fix: Add Bearer auth header when fetching ollama models
This commit is contained in:
parent
e932dba75c
commit
4fd02daad5
1 changed files with 4 additions and 0 deletions
|
|
@ -509,6 +509,10 @@ class Ollama extends BaseLLM {
|
|||
this.getEndpoint("api/tags"),
|
||||
{
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Authorization: `Bearer ${this.apiKey}`,
|
||||
},
|
||||
},
|
||||
);
|
||||
const data = await response.json();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue