[PR #1886] [CLOSED] feat: load ~/.ollama/.env using godotenv #10714

Closed
opened 2026-04-12 23:08:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1886
Author: @sublimator
Created: 1/10/2024
Status: Closed

Base: mainHead: nd-load-ollama-env-using-godotenv-2024-01-10


📝 Commits (1)

  • 0c7167e feat: load ~/.ollama/.env using godotenv

📊 Changes

4 files changed (+43 additions, -0 deletions)

View changed files

cmd/dotenv.go (+35 -0)
📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 main.go (+5 -0)

📄 Description

  • More generic than https://github.com/jmorganca/ollama/pull/1846
  • Slots in simply with the existing environment variable configuration
    • Can be used to set environment variables on MacOS for e.g. OLLAMA_ORIGINS without needing to fiddle around with plist/SIP

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1886 **Author:** [@sublimator](https://github.com/sublimator) **Created:** 1/10/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `nd-load-ollama-env-using-godotenv-2024-01-10` --- ### 📝 Commits (1) - [`0c7167e`](https://github.com/ollama/ollama/commit/0c7167e64d04847b93aeaafcd1ec981deabbba55) feat: load ~/.ollama/.env using godotenv ### 📊 Changes **4 files changed** (+43 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `cmd/dotenv.go` (+35 -0) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `main.go` (+5 -0) </details> ### 📄 Description - More generic than https://github.com/jmorganca/ollama/pull/1846 - Slots in simply with the existing environment variable configuration - Can be used to set environment variables on MacOS for e.g. OLLAMA_ORIGINS without needing to fiddle around with plist/SIP --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:08:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10714