Skip to content

Commit 10938d6

Browse files
authored
Merge pull request #1186 from dgageot/ollama-support
Add ollama openai endpoint
2 parents 173b693 + ec9daf7 commit 10938d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/model/provider/provider.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ var Aliases = map[string]Alias{
5151
BaseURL: "https://api.mistral.ai/v1",
5252
TokenEnvVar: "MISTRAL_API_KEY",
5353
},
54+
"ollama": {
55+
APIType: "openai",
56+
BaseURL: "http://localhost:11434/v1",
57+
},
5458
}
5559

5660
// Provider defines the interface for model providers

0 commit comments

Comments
 (0)