We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 360b0e7 commit c838eadCopy full SHA for c838ead
src/api/providers/ollama.ts
@@ -25,8 +25,9 @@ export class OllamaHandler extends BaseProvider implements SingleCompletionHandl
25
super()
26
this.options = options
27
this.client = new OpenAI({
28
- baseURL: (this.options.ollamaBaseUrl || "http://localhost:11434") + "/v1",
29
- apiKey: "ollama",
+ baseURL: (this.options.ollamaBaseUrl || "http://localhost:11434") + "/api",
+ apiKey: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFmZmM4Nzc0LWY2YzYtNDc0Ny05Njc2LTFhZjBkNmExNWNlNSJ9.ik8yZVAvgXGjyV-1N4jusNsXv9u0LUyxBibuu0SRnr4",
30
+ // Above is my api key, replace with your api key to authorise request
31
})
32
}
33
0 commit comments