[PR #3537] [MERGED] Overhaul AWS Bedrock provider for AIProviders #4320

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3537
Author: @timothycarambat
Created: 3/25/2025
Status: Merged
Merged: 3/25/2025
Merged by: @timothycarambat

Base: masterHead: 3441-bedrock-refactor


📝 Commits (3)

  • af2eb14 Patch AWS Bedrock provider for newer models and performance
  • 17f3416 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 3441-bedrock-refactor
  • b6fafe3 patch prompt constructor

📊 Changes

3 files changed (+1049 additions, -129 deletions)

View changed files

📝 server/package.json (+1 -0)
📝 server/utils/AiProviders/bedrock/index.js (+200 -129)
📝 server/yarn.lock (+848 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #3441

What is in this change?

  • Totally remove Langchain implementation 🗑️
  • Refactor implementation to use AWS JS SDK with propert message handling
  • Compensate for non-system message permitted models
  • Explict deepseek reasoning support
  • Support faster streaming and metrics tracking for response.

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

Tested non-streaming and streaming with multiple models - notably:

  • meta.llama3-8b-instruct-v1:0
  • us.deepseek.r1-v1:0
  • amazon.titan-text-express-v1

🔄 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/3537 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/25/2025 **Status:** ✅ Merged **Merged:** 3/25/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `3441-bedrock-refactor` --- ### 📝 Commits (3) - [`af2eb14`](https://github.com/Mintplex-Labs/anything-llm/commit/af2eb148166a78e6d1c7a53588b59d3ab6a9c995) Patch AWS Bedrock provider for newer models and performance - [`17f3416`](https://github.com/Mintplex-Labs/anything-llm/commit/17f34166198269f2a8abdcc507b836d32cca21bf) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 3441-bedrock-refactor - [`b6fafe3`](https://github.com/Mintplex-Labs/anything-llm/commit/b6fafe3c37802af3ecb923c18503dd35fe296ffe) patch prompt constructor ### 📊 Changes **3 files changed** (+1049 additions, -129 deletions) <details> <summary>View changed files</summary> 📝 `server/package.json` (+1 -0) 📝 `server/utils/AiProviders/bedrock/index.js` (+200 -129) 📝 `server/yarn.lock` (+848 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [x] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #3441 ### What is in this change? - Totally remove Langchain implementation 🗑️ - Refactor implementation to use AWS JS SDK with propert message handling - Compensate for non-system message permitted models - Explict deepseek reasoning support - Support faster streaming and metrics tracking for response. <!-- 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 Tested non-streaming **and** streaming with multiple models - notably: - `meta.llama3-8b-instruct-v1:0` - `us.deepseek.r1-v1:0` - `amazon.titan-text-express-v1` --- <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:35 -05:00
yindo closed this issue 2026-02-22 18:35:35 -05:00
yindo changed title from [PR #3537] Overhaul AWS Bedrock provider for `AIProviders` to [PR #3537] [MERGED] Overhaul AWS Bedrock provider for `AIProviders` 2026-06-05 15:17:58 -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#4320