anthropics / anthropic-sdk-typescript

Access to Anthropic's safety-first language model APIs
https://www.npmjs.com/package/@anthropic-ai/sdk
MIT License
637 stars 69 forks source link

More user-friendly errors #517

Open dandv opened 2 weeks ago

dandv commented 2 weeks ago

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:

RobertCraigie commented 1 week ago

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?