AWS bedrock documentation change
Summary
Updated CLI examples to use new model ID (amazon.nova-lite-v1:0) and adjusted request/response parameters to match new API structure.
Security assessment
The changes are purely functional updates to API examples and model references without any security context, vulnerability fixes, or security feature documentation.
Diff
diff --git a/bedrock/latest/userguide/getting-started-api-ex-cli.md b/bedrock/latest/userguide/getting-started-api-ex-cli.md index 832fe88f1..0df6d70c5 100644 --- a//bedrock/latest/userguide/getting-started-api-ex-cli.md +++ b//bedrock/latest/userguide/getting-started-api-ex-cli.md @@ -50,2 +50,2 @@ The following example runs the [InvokeModel](https://docs.aws.amazon.com/bedrock - --model-id amazon.titan-text-express-v1 \ - --body '{"inputText": "Describe the purpose of a \"hello world\" program in one line.", "textGenerationConfig" : {"maxTokenCount": 512, "temperature": 0.5, "topP": 0.9}}' \ + --model-id amazon.nova-lite-v1:0 \ + --body '{"messages": [{"role": "user", "content": [{"text": "Describe the purpose of a \"hello world\" program in one line."}]}], "inferenceConfig": {"maxTokens": 512, "temperature": 0.5, "topP": 0.9}}' \ @@ -55 +55 @@ The following example runs the [InvokeModel](https://docs.aws.amazon.com/bedrock -If the command is successful, the response generated by the model is written to the `invoke-model-output-text.txt` file. The text response is returned in the `outputText` field, alongside accompanying information. +If the command is successful, the response generated by the model is written to the `invoke-model-output-text.txt` file. The text response is returned in the `output.message.content` field, alongside accompanying information. @@ -63 +63 @@ The following example runs the [Converse](https://docs.aws.amazon.com/bedrock/la - --model-id amazon.titan-text-express-v1 \ + --model-id amazon.nova-lite-v1:0 \