Use variable for OLLAMA_API_BASE

- Update OLLAMA_API_BASE to use a variable.
- This allows for easier configuration.
- Add a default value to the example file.
This commit is contained in:
Roger Gonzalez 2025-03-30 12:28:54 -03:00
parent e9cb059982
commit 891f5b946f
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
3 changed files with 3 additions and 2 deletions

View File

@ -492,7 +492,7 @@ Now, write the commit message in this exact format:
(setenv "ANTHROPIC_API_KEY" anthropic-key)
(setenv "OPENAI_API_KEY" openai-key)
(setenv "GEMINI_API_KEY" gemini-key)
(setenv "OLLAMA_API_BASE" "https://ollama.rogs.casa")
(setenv "OLLAMA_API_BASE" ollama-api-base)
;; General settings
(setq aidermacs-use-architect-mode t)

View File

@ -872,7 +872,7 @@ Now, write the commit message in this exact format:
(setenv "ANTHROPIC_API_KEY" anthropic-key)
(setenv "OPENAI_API_KEY" openai-key)
(setenv "GEMINI_API_KEY" gemini-key)
(setenv "OLLAMA_API_BASE" "https://ollama.rogs.casa")
(setenv "OLLAMA_API_BASE" ollama-api-base)
;; General settings
(setq aidermacs-use-architect-mode t)

View File

@ -3,5 +3,6 @@
(defvar openai-key "a-big-openai-key")
(defvar anthropic-key "a-big-anthropic-key")
(defvar gemini-key "a-big-gemini-key")
(defvar ollama-api-base "my-ollama-api")
(provide 'private)