merlyn/server
Tristan Stahnke b64a77f29f
Refactor AWS Bedrock Provider for Multi-modal Support & Correct Token Limits (#3714)
* Fixed two primary issues discovered while using AWS Bedrock with Anthropic Claude Sonnet models:
- Context Window defaults to 8192 maximum, which isn't correct
- Multimodal stopped working when removing langchain, which was transparently handling image_url to a format sonnet expects.

* Ran `yarn lint`

* Updated .env.example to have aws bedrock examples too

* Refactor for readability
move utils for AWS specific functionality to subfile
add token output max to ENV so setting persits

---------

Co-authored-by: Tristan Stahnke <tristan.stahnke+gpsec@guidepointsecurity.com>
Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-05-06 12:55:24 -07:00
..
endpoints Prune telemetry events 2025-04-29 13:54:00 -07:00
jobs Feature/drupalwiki collector (#3693) 2025-04-21 09:17:24 -07:00
models Refactor AWS Bedrock Provider for Multi-modal Support & Correct Token Limits (#3714) 2025-05-06 12:55:24 -07:00
prisma Prompt variables (#3359) 2025-03-25 12:44:19 -07:00
storage Add new model provider PPIO (#3211) 2025-02-27 10:53:00 -08:00
swagger Allow custom headers in upload-link endpoint (#3695) 2025-04-22 12:47:12 -07:00
utils Refactor AWS Bedrock Provider for Multi-modal Support & Correct Token Limits (#3714) 2025-05-06 12:55:24 -07:00
.env.example Refactor AWS Bedrock Provider for Multi-modal Support & Correct Token Limits (#3714) 2025-05-06 12:55:24 -07:00
.flowconfig devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
.gitignore update gitignore 2025-04-09 15:40:45 -07:00
.nvmrc Implement Chroma Support (#1) 2023-06-07 21:31:35 -07:00
index.js ModelContextProtocol (MCP) Full Compatibility (#3547) 2025-03-31 16:15:19 -05:00
jsconfig.json devcontainer v1 (#297) 2024-01-08 15:31:06 -08:00
nodemon.json Full developer api (#221) 2023-08-23 19:15:07 -07:00
package.json #3707 added sse and streamable stransport support for mcp servers (#3747) 2025-05-02 14:09:25 -07:00
yarn.lock #3707 added sse and streamable stransport support for mcp servers (#3747) 2025-05-02 14:09:25 -07:00