[PR #1935] [MERGED] Add AWS bedrock support for LLM + agents #3832

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

📋 Pull Request Information

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

Base: masterHead: 938-aws-bedrock


📝 Commits (1)

  • 1c6e53a add AWS bedrock support for LLM + agents

📊 Changes

22 files changed (+1838 additions, -3 deletions)

View changed files

📝 README.md (+1 -0)
📝 docker/.env.example (+7 -0)
frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx (+122 -0)
frontend/src/components/LLMSelection/AwsBedrockLLMOptions/regions.js (+204 -0)
📝 frontend/src/hooks/useGetProvidersModels.js (+2 -0)
frontend/src/media/llmprovider/bedrock.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+16 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx (+8 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+1 -0)
📝 frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx (+6 -1)
📝 server/models/systemSettings.js (+6 -0)
📝 server/package.json (+2 -1)
server/utils/AiProviders/bedrock/index.js (+217 -0)
📝 server/utils/agents/aibitat/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/ai-provider.js (+11 -0)
server/utils/agents/aibitat/providers/bedrock.js (+136 -0)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)
📝 server/utils/agents/index.js (+14 -1)
📝 server/utils/helpers/index.js (+3 -0)

...and 2 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #938

What is in this change?

Additional Information

  • Have to support via langchain/aws and we use our built-in toolcalling for agents. Tool calling with AWS is very fickle and not reliable like most cloud providers.

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/1935 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 7/23/2024 **Status:** ✅ Merged **Merged:** 7/23/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `938-aws-bedrock` --- ### 📝 Commits (1) - [`1c6e53a`](https://github.com/Mintplex-Labs/anything-llm/commit/1c6e53a3dd6351788a6ed27565f56bc747eda636) add AWS bedrock support for LLM + agents ### 📊 Changes **22 files changed** (+1838 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `docker/.env.example` (+7 -0) ➕ `frontend/src/components/LLMSelection/AwsBedrockLLMOptions/index.jsx` (+122 -0) ➕ `frontend/src/components/LLMSelection/AwsBedrockLLMOptions/regions.js` (+204 -0) 📝 `frontend/src/hooks/useGetProvidersModels.js` (+2 -0) ➕ `frontend/src/media/llmprovider/bedrock.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+16 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx` (+8 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+1 -0) 📝 `frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx` (+6 -1) 📝 `server/models/systemSettings.js` (+6 -0) 📝 `server/package.json` (+2 -1) ➕ `server/utils/AiProviders/bedrock/index.js` (+217 -0) 📝 `server/utils/agents/aibitat/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/ai-provider.js` (+11 -0) ➕ `server/utils/agents/aibitat/providers/bedrock.js` (+136 -0) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) 📝 `server/utils/agents/index.js` (+14 -1) 📝 `server/utils/helpers/index.js` (+3 -0) _...and 2 more files_ </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 #938 ### What is in this change? - Adds support for chat, RAG, and agent via AWS Bedrock models. - Requires docs page for set up and IAM example at https://docs.useanything.com/setup/llm-configuration/cloud/aws-bedrock - Removed openai assumption for agent - needs to be explicitly defined now. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - Have to support via `langchain/aws` and we use our built-in toolcalling for agents. Tool calling with AWS is very fickle and not reliable like most cloud providers. <!-- 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:35 -05:00
yindo closed this issue 2026-02-22 18:34:35 -05:00
yindo changed title from [PR #1935] Add AWS bedrock support for LLM + agents to [PR #1935] [MERGED] Add AWS bedrock support for LLM + agents 2026-06-05 15:15:28 -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#3832