eca icon indicating copy to clipboard operation
eca copied to clipboard

New LLM provider AWS bedrock - support converse and conversestream

Open ChetanKoneru opened this issue 11 months ago • 8 comments

Happy new year,

These endpoints are different from openAI completion and openAI Response

https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html

Also see this, https://github.com/karthink/gptel/issues/1200 https://github.com/karthink/gptel/blob/master/gptel-bedrock.el

They are multiple ways to authenticate, lets start up AWS_BEARER_TOKEN_BEDROCK, low hanging fruit for implementing this.

ChetanKoneru avatar Jan 04 '26 14:01 ChetanKoneru

So this would be a new API for what providers? only for bedrock? I wonder if it's worth the complex addition vs what different models we would support that we don't support already

ericdallo avatar Jan 04 '26 15:01 ericdallo

The Converse and ConverseStream endpoints are specific to Amazon Bedrock. Although LiteLLM supports the Bedrock Converse API for various model providers.

https://docs.litellm.ai/docs/bedrock_converse

I don't think this it is complex, we just expose a new provider. Let me create a draft PR, I have few constraints testing it due to my company proxy in front of bedrock access. I will make the PR available for review once I am able to test

ChetanKoneru avatar Jan 04 '26 17:01 ChetanKoneru

it is not about supporting new models but the provider, AWS bedrock like other LLM providers allows users to deploy models similar to Openrouter or Azure OpenAI in their infra.

ChetanKoneru avatar Jan 04 '26 17:01 ChetanKoneru

Ok, I think it makes sense, but I have no way to test or maintain this feature, would you be willing to maintain it at least for some time?

I will take a look at the PR tomorrow

ericdallo avatar Jan 04 '26 19:01 ericdallo

Yes, as soon I can get it working through my company proxy.

ChetanKoneru avatar Jan 04 '26 21:01 ChetanKoneru

Any update on this @ericdallo @CsBigDataHub?

I would be open to test and maintain it too.

ricardosllm avatar May 14 '26 08:05 ricardosllm

@ricardosllm I don't think @CsBigDataHub is working on that right now, but we could support a provider for that yes, I'm ok with that, feel free to follow other propviders standard and add support for it c/c @zikajk

ericdallo avatar May 14 '26 14:05 ericdallo

https://github.com/editor-code-assistant/eca/pull/255

I need to sync latest changes. Bit busy right now. Will look in to it when I get time.

BTW, not using AWS bedrock anymore, I am happy to implement it but I need someone to test it.

ChetanKoneru avatar May 14 '26 14:05 ChetanKoneru