Skip to content

Commit 6f8686e

Browse files
authored
allow configuration of ollama base url (#2)
1 parent 783bca0 commit 6f8686e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-cli/src/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function baseURLForProvider(provider: string): string {
8282
case "openai":
8383
return "https://api.openai.com/v1";
8484
case "ollama":
85-
return "http://localhost:11434/v1";
85+
return process.env["OLLAMA_BASE_URL"] ?? "http://localhost:11434/v1";
8686
case "gemini":
8787
return "https://generativelanguage.googleapis.com/v1beta/openai/";
8888
case "openrouter":

0 commit comments

Comments
 (0)