Closed ataylorme closed 8 months ago
Hi @ataylorme - thanks for reaching out!
It looks like you're getting service exception around modelID
param and according to the docs on the list of base model available, you might be using Anthropic Claude v2 model. In that case, you'd use anthropic.claude-v2
as model ID param, also shown in the table.
Please refer to the docs on other type of models.
The modelId to provide in the header depends on the type of model that you use.
If you use a base model, specify the model ID or its ARN.
If you use a provisioned model, specify the provisionedModelName or the provisionedModelArn that was returned from the creation of the Provisioned Throughput.
If you use a custom model, first purchase Provisioned Throughput for it (for more information, see Provisioned throughput in the Amazon Bedrock User Guide). Then specify the provisionedModelName or the provisionedModelArn that was returned from the creation of the Provisioned Throughput.
Hope it helps, John
Thanks for the response John! I didn’t realize provisioned throughout models had to be created and then the ARN sent instead of a model ID.
I will give that a try and re-open this issue if it isn’t working.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
When calling the
InvokeModelCommand
command withmodelId: anthropic.claude-v2:1:200k
a validation error is returnedanthropic.claude-v2:1:200k
is in the list of models when calling list foundational models from AWS BedrockSDK version number
@aws-sdk/client-bedrock-runtime@3.489.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.16.1
Reproduction Steps
Observed Behavior
Expected Behavior
The command is successful
Possible Solution
No response
Additional Information/Context
No response