Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The Provided model dosen't support on-demand throughput #508

Closed
HeyJiqingCode opened this issue Aug 28, 2024 · 6 comments
Closed

[BUG] The Provided model dosen't support on-demand throughput #508

HeyJiqingCode opened this issue Aug 28, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@HeyJiqingCode
Copy link

Describe the bug

When Start a conversation with Claude 3 (Opus), there's an error "An error occurred while responding." And the lambda function (WebSocketHandler) logs in CloudWatch show that "Failed to run stream handler: An error occurred (ValidationException) when calling the ConverseStream operation: The provided model doesn't support on-demand throughput."

Screenshots

img_v3_02e6_d88daff5-8bfc-48e0-bb0e-6344cd02b0cg
img_v3_02e6_6abc3d5d-b621-48d4-8b5c-670384884bdg
img_v3_02e6_1c662972-1b0f-42c3-8905-c4409cd22e7g

@HeyJiqingCode HeyJiqingCode changed the title [BUG] The Provided model dosen's support on-demand throughput [BUG] The Provided model dosen't support on-demand throughput Aug 28, 2024
@tomvandenbergh
Copy link

Hi, I have the same problem with Claude 3.5 Sonnet on bedrock in Ireland. DId you manage to find a solution?

@HeyJiqingCode
Copy link
Author

Hi, I have the same problem with Claude 3.5 Sonnet on bedrock in Ireland. DId you manage to find a solution?

Hi, I do have tried various methods to fix it, but none worked in Claude 3 Opus. BTW, Claude 3.5 Sonnet works fine in my environment (us-west-2).

@tomvandenbergh
Copy link

Hi, I have the same problem with Claude 3.5 Sonnet on bedrock in Ireland. DId you manage to find a solution?

Hi, I do have tried various methods to fix it, but none worked in Claude 3 Opus. BTW, Claude 3.5 Sonnet works fine in my environment (us-west-2).

Hi. Ah yes ok. I'm in eu-west-1 where I think 3.5 is fairly newly added. And it has the cross-region inference. I don't know if that could cause any problems?

@statefb statefb added the bug Something isn't working label Aug 30, 2024
@virtualstaticvoid
Copy link

virtualstaticvoid commented Sep 2, 2024

I experienced the same issue when attempting to use Anthropic Claude 3.5 Sonnet in the Paris region.

The provided model doesn't support on-demand throughput.

It seems that the model can only be used with something called an inference profile due to cross-region inference1.

image

Anyway, it boils down to simply changing the modelId used, based on the region in question.

E.g. In my case, the modelId was anthropic.claude-3-5-sonnet-20240620-v1:0 and now it's eu.anthropic.claude-3-5-sonnet-20240620-v1:0.

HTH.

Footnotes

  1. Never heard of this before today.

@francoisauclair911
Copy link

@virtualstaticvoid can I ask where I should update to eu.anthropic.claude-3-5-sonnet-20240620-v1:0 via the CLI or the aider.models.yml or both?

@virtualstaticvoid
Copy link

@virtualstaticvoid can I ask where I should update to eu.anthropic.claude-3-5-sonnet-20240620-v1:0 via the CLI or the aider.models.yml or both?

In my case, I changed it in the bedrock.py file.

return "anthropic.claude-3-5-sonnet-20240620-v1:0"

Anywhere where the modelId is taken as a configuration or parameter...

chm10 added a commit to chm10/bedrock-claude-chat that referenced this issue Sep 15, 2024
statefb pushed a commit that referenced this issue Sep 17, 2024
* #508 Fix compatibility with region inference and resolve issues with different regions

* Reformat following  CI (#531)
* Two spaces before comment
@statefb statefb closed this as completed Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants