[PR #4505] [MERGED] Migrate gemini agents away from Untooled #4653

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4505
Author: @timothycarambat
Created: 10/7/2025
Status: Merged
Merged: 10/7/2025
Merged by: @timothycarambat

Base: masterHead: gemini-migration-agents


📝 Commits (4)

  • 82c47c1 Migrate gemini agents away from Untooled
  • 3df407d disable agents for gemma models as they are not supported for tool calling
  • 4a9b880 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into gemini-migration-agents
  • 63bf691 Dev build

📊 Changes

2 files changed (+208 additions, -163 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 server/utils/agents/aibitat/providers/gemini.js (+207 -162)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #4452

What is in this change?

  • Migrates Gemini agents away from Untooled. This is impactful since Gemini can often hang or have other issues with tool calling sometimes when using untooled.

Gemini has awful documentation for tool calling, but it turns out there is an undocumented function response type they take in the OpenAI API that allows us to easily use the OpenAI compat endpoints without much fuss and still preserving the ideal flow and callbacks for gemini tool call execution.

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/4505 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 10/7/2025 **Status:** ✅ Merged **Merged:** 10/7/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `gemini-migration-agents` --- ### 📝 Commits (4) - [`82c47c1`](https://github.com/Mintplex-Labs/anything-llm/commit/82c47c1815edbcda59e2e3f5e5c6530aa9e6bb2d) Migrate gemini agents away from `Untooled` - [`3df407d`](https://github.com/Mintplex-Labs/anything-llm/commit/3df407d9a6b3374b63f60ec04f06288bf8d30ee9) disable agents for gemma models as they are not supported for tool calling - [`4a9b880`](https://github.com/Mintplex-Labs/anything-llm/commit/4a9b880bad5825aa2f2c6ccc186fe21af61b0de4) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into gemini-migration-agents - [`63bf691`](https://github.com/Mintplex-Labs/anything-llm/commit/63bf691f1c11c65f905b7822289673fc4f7816fe) Dev build ### 📊 Changes **2 files changed** (+208 additions, -163 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `server/utils/agents/aibitat/providers/gemini.js` (+207 -162) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues resolves #4452 ### What is in this change? - Migrates Gemini agents away from `Untooled`. This is impactful since Gemini can often hang or have other issues with tool calling sometimes when using untooled. Gemini has awful documentation for tool calling, but it turns out there is an undocumented function response type they take in the OpenAI API that allows us to easily use the OpenAI compat endpoints without much fuss and still preserving the ideal flow and callbacks for gemini tool call execution. <!-- Describe the changes in this PR that are impactful to the repo. --> ### 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:16 -05:00
yindo closed this issue 2026-02-22 18:36:16 -05:00
yindo changed title from [PR #4505] Migrate gemini agents away from `Untooled` to [PR #4505] [MERGED] Migrate gemini agents away from `Untooled` 2026-06-05 15:19:38 -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#4653