[PR #3005] [MERGED] 2749 ollama client auth token #4192

Closed
opened 2026-02-22 18:35:20 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3005
Author: @ssbodapati
Created: 1/23/2025
Status: Merged
Merged: 2/18/2025
Merged by: @timothycarambat

Base: masterHead: 2749-ollama-client-auth-token


📝 Commits (10+)

  • b7ebcbf ollama auth token provision
  • 815e74b auth token provision
  • 7875a9b ollama auth provision
  • 8e6e14f ollama auth token
  • e3a40e1 ollama auth provision
  • db5cf98 token input field css fix
  • 51ed3eb Fix provider handler not using key
  • d7e1434 apply header and auth to agent invocations
  • 98c5a4c Merge branch 'master' into 2749-ollama-client-auth-token
  • 159fb3f upgrading to ollama 5.10 for passing headers to constructor

📊 Changes

12 files changed (+211 additions, -128 deletions)

View changed files

📝 docker/.env.example (+1 -0)
📝 frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx (+149 -111)
📝 frontend/src/hooks/useProviderEndpointAutoDiscovery.js (+25 -2)
📝 server/.env.example (+1 -0)
📝 server/models/systemSettings.js (+1 -0)
📝 server/package.json (+2 -2)
📝 server/storage/models/.gitignore (+2 -1)
📝 server/utils/AiProviders/ollama/index.js (+7 -4)
📝 server/utils/agents/aibitat/providers/ollama.js (+7 -1)
📝 server/utils/helpers/customModels.js (+8 -3)
📝 server/utils/helpers/updateENV.js (+4 -0)
📝 server/yarn.lock (+4 -4)

📄 Description

Pull Request Type

  • [ x] feat

What is in this change?

  • Ollama auth token support - Added UI field in the LLM Preferences
  • setting OLLAMA_AUTH_TOKEN through update_env , updated env key_map
  • Ollama client constructor uses OLLAMA_AUTH_TOKEN

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/3005 **Author:** [@ssbodapati](https://github.com/ssbodapati) **Created:** 1/23/2025 **Status:** ✅ Merged **Merged:** 2/18/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2749-ollama-client-auth-token` --- ### 📝 Commits (10+) - [`b7ebcbf`](https://github.com/Mintplex-Labs/anything-llm/commit/b7ebcbff443e14cb4bde75a42e2f1dd95120c798) ollama auth token provision - [`815e74b`](https://github.com/Mintplex-Labs/anything-llm/commit/815e74bdcd0255073e508f0158a0422134941352) auth token provision - [`7875a9b`](https://github.com/Mintplex-Labs/anything-llm/commit/7875a9ba3bcdc8956d95307e5e21229a62f582fa) ollama auth provision - [`8e6e14f`](https://github.com/Mintplex-Labs/anything-llm/commit/8e6e14f05c4ece655b862a5684dcbcc0941613de) ollama auth token - [`e3a40e1`](https://github.com/Mintplex-Labs/anything-llm/commit/e3a40e1f0b6596ffd394c040fb36e153501ba661) ollama auth provision - [`db5cf98`](https://github.com/Mintplex-Labs/anything-llm/commit/db5cf98f7d929ff8048b83d78636f1e48fc1d22b) token input field css fix - [`51ed3eb`](https://github.com/Mintplex-Labs/anything-llm/commit/51ed3eb9c1de76d551e91e4e4d9e1c4c0ad5366c) Fix provider handler not using key - [`d7e1434`](https://github.com/Mintplex-Labs/anything-llm/commit/d7e1434db4700c5abd964c85b8cbfc0467b72622) apply header and auth to agent invocations - [`98c5a4c`](https://github.com/Mintplex-Labs/anything-llm/commit/98c5a4cd57f09b6347444148bd92f9b48f6622e0) Merge branch 'master' into 2749-ollama-client-auth-token - [`159fb3f`](https://github.com/Mintplex-Labs/anything-llm/commit/159fb3f1ec9cb3d64e3c9d28e0832444162347f6) upgrading to ollama 5.10 for passing headers to constructor ### 📊 Changes **12 files changed** (+211 additions, -128 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+1 -0) 📝 `frontend/src/components/LLMSelection/OllamaLLMOptions/index.jsx` (+149 -111) 📝 `frontend/src/hooks/useProviderEndpointAutoDiscovery.js` (+25 -2) 📝 `server/.env.example` (+1 -0) 📝 `server/models/systemSettings.js` (+1 -0) 📝 `server/package.json` (+2 -2) 📝 `server/storage/models/.gitignore` (+2 -1) 📝 `server/utils/AiProviders/ollama/index.js` (+7 -4) 📝 `server/utils/agents/aibitat/providers/ollama.js` (+7 -1) 📝 `server/utils/helpers/customModels.js` (+8 -3) 📝 `server/utils/helpers/updateENV.js` (+4 -0) 📝 `server/yarn.lock` (+4 -4) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ x] ✨ feat ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Ollama auth token support - Added UI field in the LLM Preferences - setting OLLAMA_AUTH_TOKEN through update_env , updated env key_map - Ollama client constructor uses OLLAMA_AUTH_TOKEN ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:20 -05:00
yindo closed this issue 2026-02-22 18:35:20 -05:00
yindo changed title from [PR #3005] 2749 ollama client auth token to [PR #3005] [MERGED] 2749 ollama client auth token 2026-06-05 15:17:19 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4192