[PR #4766] [MERGED] Add Auth Token to Ollama Embedding Client #4759

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4766
Author: @angelplusultra
Created: 12/11/2025
Status: Merged
Merged: 12/12/2025
Merged by: @timothycarambat

Base: masterHead: bug-missing-token-ollama-embedding


📝 Commits (6)

  • 473bc00 Enhance OllamaEmbedder to support authentication by adding an authorization token in headers for client initialization.
  • f67ffa8 Merge branch 'master' into bug-missing-token-ollama-embedding
  • d1b1fda Add optional Auth Token input for Ollama embedding options
  • a3c58a2 Merge branch 'bug-missing-token-ollama-embedding' of https://github.com/Mintplex-Labs/anything-llm into bug-missing-token-ollama-embedding
  • 26ac2f4 move info elements
  • 16439be Merge branch 'master' into bug-missing-token-ollama-embedding

📊 Changes

2 files changed (+38 additions, -7 deletions)

View changed files

📝 frontend/src/components/EmbeddingSelection/OllamaOptions/index.jsx (+33 -6)
📝 server/utils/EmbeddingEngines/ollama/index.js (+5 -1)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4752

What is in this change?

This PR makes a revision to the Ollama embedding engine by applying the authentication token to the request headers if it's provided.

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/4766 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 12/11/2025 **Status:** ✅ Merged **Merged:** 12/12/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `bug-missing-token-ollama-embedding` --- ### 📝 Commits (6) - [`473bc00`](https://github.com/Mintplex-Labs/anything-llm/commit/473bc0053211dfeaf1b8e6b0e0a8ef7d873e0be8) Enhance OllamaEmbedder to support authentication by adding an authorization token in headers for client initialization. - [`f67ffa8`](https://github.com/Mintplex-Labs/anything-llm/commit/f67ffa80c161fd303d1bd58e1162c0ffe34293a6) Merge branch 'master' into bug-missing-token-ollama-embedding - [`d1b1fda`](https://github.com/Mintplex-Labs/anything-llm/commit/d1b1fdaeb4b9b1b4302e4e43436af04b3cad6556) Add optional Auth Token input for Ollama embedding options - [`a3c58a2`](https://github.com/Mintplex-Labs/anything-llm/commit/a3c58a2cc628d18aac66458e7a72a42d8b3d462c) Merge branch 'bug-missing-token-ollama-embedding' of https://github.com/Mintplex-Labs/anything-llm into bug-missing-token-ollama-embedding - [`26ac2f4`](https://github.com/Mintplex-Labs/anything-llm/commit/26ac2f4507f9eb2251d2704dd39ae6a9a296fe87) move info elements - [`16439be`](https://github.com/Mintplex-Labs/anything-llm/commit/16439bee21841d4a4f597ac8a021e2eec8b4bcb0) Merge branch 'master' into bug-missing-token-ollama-embedding ### 📊 Changes **2 files changed** (+38 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/EmbeddingSelection/OllamaOptions/index.jsx` (+33 -6) 📝 `server/utils/EmbeddingEngines/ollama/index.js` (+5 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4752 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> This PR makes a revision to the Ollama embedding engine by applying the authentication token to the request headers if it's provided. ### 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:36:28 -05:00
yindo closed this issue 2026-02-22 18:36:28 -05:00
yindo changed title from [PR #4766] Add Auth Token to Ollama Embedding Client to [PR #4766] [MERGED] Add Auth Token to Ollama Embedding Client 2026-06-05 15:20:14 -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#4759