[PR #3251] [MERGED] fix: Patch agent flow to honor agent handler established provider #4242

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3251
Author: @timothycarambat
Created: 2/17/2025
Status: Merged
Merged: 2/17/2025
Merged by: @timothycarambat

Base: masterHead: 3248-agent-flow-honor-provider


📝 Commits (2)

  • a60f9fa fix: Patch agent flow to honor agent handler established provider
  • 4e75d6d Merge branch 'master' into 3248-agent-flow-honor-provider

📊 Changes

7 files changed (+48 additions, -54 deletions)

View changed files

📝 server/utils/agentFlows/executor.js (+16 -14)
📝 server/utils/agentFlows/executors/api-call.js (+2 -2)
📝 server/utils/agentFlows/executors/llm-instruction.js (+8 -3)
📝 server/utils/agentFlows/executors/web-scraping.js (+16 -13)
📝 server/utils/agentFlows/index.js (+4 -20)
📝 server/utils/agents/aibitat/index.js (+1 -1)
📝 server/utils/agents/index.js (+1 -1)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #3248

What is in this change?

  • Fix bug where the agent flow execution, on calling of an AI model, would always fallback to the default openai. This should honor the users workspace LLM, then fallback to the system LLM. Only to prevent code exception should the openai fallback be triggered.

Additional Information

  • aibitat is now available in context for blocks, which gives access to the agent handler aibitat class.

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/3251 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/17/2025 **Status:** ✅ Merged **Merged:** 2/17/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `3248-agent-flow-honor-provider` --- ### 📝 Commits (2) - [`a60f9fa`](https://github.com/Mintplex-Labs/anything-llm/commit/a60f9fa7820cdeddd81051005c21baf07227d906) fix: Patch agent flow to honor agent handler established provider - [`4e75d6d`](https://github.com/Mintplex-Labs/anything-llm/commit/4e75d6d39cc0f30a30ddc705424435a8179f2d46) Merge branch 'master' into 3248-agent-flow-honor-provider ### 📊 Changes **7 files changed** (+48 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/agentFlows/executor.js` (+16 -14) 📝 `server/utils/agentFlows/executors/api-call.js` (+2 -2) 📝 `server/utils/agentFlows/executors/llm-instruction.js` (+8 -3) 📝 `server/utils/agentFlows/executors/web-scraping.js` (+16 -13) 📝 `server/utils/agentFlows/index.js` (+4 -20) 📝 `server/utils/agents/aibitat/index.js` (+1 -1) 📝 `server/utils/agents/index.js` (+1 -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 #3248 ### What is in this change? - Fix bug where the agent flow execution, on calling of an AI model, would always fallback to the default `openai`. This should honor the users workspace LLM, then fallback to the system LLM. Only to prevent code exception should the `openai` fallback be triggered. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - `aibitat` is now available in `context` for blocks, which gives access to the agent handler aibitat class. <!-- 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:26 -05:00
yindo closed this issue 2026-02-22 18:35:26 -05:00
yindo changed title from [PR #3251] fix: Patch agent flow to honor agent handler established provider to [PR #3251] [MERGED] fix: Patch agent flow to honor agent handler established provider 2026-06-05 15:17:34 -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#4242