Open dandv opened 2 weeks 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?
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.