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

More user-friendly errors #517

Open
dandv opened this issue Sep 1, 2024 · 1 comment
Open

More user-friendly errors #517

dandv opened this issue Sep 1, 2024 · 1 comment

Comments

@dandv
Copy link
Contributor

dandv commented Sep 1, 2024

Bedrock errors like "You don't have access to the model with the specified model ID." could be made more useful by including the actual model ID, and the region for which access failed. This becomes more important in user-facing contexts where the model used was not evident. Specifying the region may help less technical users realize that access to the Anthropic model hasn't been granted for that region.

Would improving such errors fall within the scope of the @anthropic-ai/bedrock-sdk package?

Other examples:

  • The provided model identifier is invalid.
  • The provided model doesn't support on-demand throughput.
@RobertCraigie
Copy link
Collaborator

Would improving such errors fall within the scope of the @anthropic-ai/bedrock-sdk package?

While I definitely agree these error messages could be better, it would be much more fitting to improve them on the API side so that all Bedrock users benefit.

Have you reported this to the Bedrock team?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants