[PR #5180] [MERGED] Add custom fetch to embedder for Ollama #5339

Closed
opened 2026-06-05 15:21:01 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5180
Author: @timothycarambat
Created: 3/9/2026
Status: Merged
Merged: 3/9/2026
Merged by: @timothycarambat

Base: masterHead: 5161-ollama-fetch-to-embedder


📝 Commits (1)

  • 181a591 Refactor ollama timeout to be shared. Add custom fetch to embedder for ollama as well

📊 Changes

3 files changed (+16 additions, -47 deletions)

View changed files

📝 server/utils/AiProviders/ollama/index.js (+8 -5)
📝 server/utils/EmbeddingEngines/ollama/index.js (+7 -1)
📝 server/utils/agents/aibitat/providers/ollama.js (+1 -41)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #5161

Description

  • Refactors Ollama.#applyFetch to instead be shared from core OllamaLLM inference class as static method to the agent + embedder implmentation
  • Embedder for Ollama now respects the custom fetch overwrite.

Visuals (if applicable)

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • 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/5180 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/9/2026 **Status:** ✅ Merged **Merged:** 3/9/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `5161-ollama-fetch-to-embedder` --- ### 📝 Commits (1) - [`181a591`](https://github.com/Mintplex-Labs/anything-llm/commit/181a59100fdff07b9809f214963251693213cee3) Refactor ollama timeout to be shared. Add custom fetch to embedder for ollama as well ### 📊 Changes **3 files changed** (+16 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/ollama/index.js` (+8 -5) 📝 `server/utils/EmbeddingEngines/ollama/index.js` (+7 -1) 📝 `server/utils/agents/aibitat/providers/ollama.js` (+1 -41) </details> ### 📄 Description … ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [x] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #5161 ### Description - Refactors `Ollama.#applyFetch` to instead be shared from core OllamaLLM inference class as static method to the agent + embedder implmentation - Embedder for Ollama now respects the custom fetch overwrite. <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### 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. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated (if applicable) - [ ] I have tested my code functionality - [ ] 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-06-05 15:21:01 -04:00
yindo closed this issue 2026-06-05 15:21:01 -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#5339