Skip to content

Commit c838ead

Browse files
committed
Temporary fix for Dan to test in a PR or as scoping in the issue
1 parent 360b0e7 commit c838ead

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/providers/ollama.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ export class OllamaHandler extends BaseProvider implements SingleCompletionHandl
2525
super()
2626
this.options = options
2727
this.client = new OpenAI({
28-
baseURL: (this.options.ollamaBaseUrl || "http://localhost:11434") + "/v1",
29-
apiKey: "ollama",
28+
baseURL: (this.options.ollamaBaseUrl || "http://localhost:11434") + "/api",
29+
apiKey: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFmZmM4Nzc0LWY2YzYtNDc0Ny05Njc2LTFhZjBkNmExNWNlNSJ9.ik8yZVAvgXGjyV-1N4jusNsXv9u0LUyxBibuu0SRnr4",
30+
// Above is my api key, replace with your api key to authorise request
3031
})
3132
}
3233

0 commit comments

Comments
 (0)