[PR #1270] [MERGED] Ollama agents #3636

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1270
Author: @timothycarambat
Created: 5/2/2024
Status: Merged
Merged: 5/7/2024
Merged by: @timothycarambat

Base: masterHead: 1242-ollama-agents


📝 Commits (7)

  • bd8043c add LMStudio agent support (generic) support
  • 0976266 add comments
  • 6dfe161 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 1241-lm-studio-agents
  • 7238f1b enable few-shot prompting per function for OSS models
  • 9e97cb3 Add Agent support for Ollama models
  • 6164e5b merge with master
  • af1acc4 improve json parsing for ollama text responses

📊 Changes

10 files changed (+188 additions, -45 deletions)

View changed files

📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+2 -2)
📝 server/package.json (+2 -0)
📝 server/utils/agents/aibitat/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/helpers/untooled.js (+24 -38)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/lmstudio.js (+24 -1)
server/utils/agents/aibitat/providers/ollama.js (+107 -0)
📝 server/utils/agents/index.js (+7 -1)
📝 server/utils/http/index.js (+5 -2)
📝 server/yarn.lock (+13 -1)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1242
depends on PR #1246

What is in this change?

  • Adds ollama agent support via UnTooled class support
  • Moves callback function in untooled to rely on the provider so we can customize how invocation is done

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/1270 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 5/2/2024 **Status:** ✅ Merged **Merged:** 5/7/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `1242-ollama-agents` --- ### 📝 Commits (7) - [`bd8043c`](https://github.com/Mintplex-Labs/anything-llm/commit/bd8043cf827c76f015881035d85098eae41738ff) add LMStudio agent support (generic) support - [`0976266`](https://github.com/Mintplex-Labs/anything-llm/commit/0976266b428889e03eff9af83619a287180563b3) add comments - [`6dfe161`](https://github.com/Mintplex-Labs/anything-llm/commit/6dfe1616c947b2a433bd20790c495cf01f60594a) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 1241-lm-studio-agents - [`7238f1b`](https://github.com/Mintplex-Labs/anything-llm/commit/7238f1b07f5ca1ace3aca155ca0eac0298257857) enable few-shot prompting per function for OSS models - [`9e97cb3`](https://github.com/Mintplex-Labs/anything-llm/commit/9e97cb320d0f2e205335d68c2825fc5f91d32ccf) Add Agent support for Ollama models - [`6164e5b`](https://github.com/Mintplex-Labs/anything-llm/commit/6164e5b5e76d6c8696e691eabcf6b693523c7bf8) merge with master - [`af1acc4`](https://github.com/Mintplex-Labs/anything-llm/commit/af1acc4c3e51d1c5ad7645114ddf10e11804102b) improve json parsing for ollama text responses ### 📊 Changes **10 files changed** (+188 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+2 -2) 📝 `server/package.json` (+2 -0) 📝 `server/utils/agents/aibitat/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/helpers/untooled.js` (+24 -38) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/lmstudio.js` (+24 -1) ➕ `server/utils/agents/aibitat/providers/ollama.js` (+107 -0) 📝 `server/utils/agents/index.js` (+7 -1) 📝 `server/utils/http/index.js` (+5 -2) 📝 `server/yarn.lock` (+13 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1242 depends on PR #1246 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Adds ollama agent support via `UnTooled` class support - Moves callback function in untooled to rely on the provider so we can customize how invocation is done ### 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:34:11 -05:00
yindo closed this issue 2026-02-22 18:34:11 -05:00
yindo changed title from [PR #1270] Ollama agents to [PR #1270] [MERGED] Ollama agents 2026-06-05 15:14:27 -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#3636