diff --git a/.doc_gen/metadata/bedrock-runtime_metadata.yaml b/.doc_gen/metadata/bedrock-runtime_metadata.yaml index 5b0a2e243ba..fdaff034ece 100644 --- a/.doc_gen/metadata/bedrock-runtime_metadata.yaml +++ b/.doc_gen/metadata/bedrock-runtime_metadata.yaml @@ -438,7 +438,7 @@ bedrock-runtime_InvokeModel_Ai21LabsJurassic2: excerpts: - description: Use the Invoke Model API to send a text message. snippet_files: - - javascriptv3/example_code/bedrock-runtime/models/ai21_labs_jurassic2/jurassic2.js + - javascriptv3/example_code/bedrock-runtime/models/ai21LabsJurassic2/invoke_model.js PHP: versions: - sdk_version: 3 @@ -493,7 +493,7 @@ bedrock-runtime_InvokeModel_TitanText: excerpts: - description: Use the Invoke Model API to send a text message. snippet_files: - - javascriptv3/example_code/bedrock-runtime/models/amazon_titan/titan_text.js + - javascriptv3/example_code/bedrock-runtime/models/amazonTitanText/invoke_model.js Go: versions: - sdk_version: 2 @@ -534,7 +534,7 @@ bedrock-runtime_InvokeModel_AnthropicClaude: excerpts: - description: Use the Invoke Model API to send a text message. snippet_files: - - javascriptv3/example_code/bedrock-runtime/models/anthropic_claude/claude_3.js + - javascriptv3/example_code/bedrock-runtime/models/anthropicClaude/invoke_claude_3.js Go: versions: - sdk_version: 2 @@ -765,7 +765,7 @@ bedrock-runtime_InvokeModel_MistralAi: excerpts: - description: Use the Invoke Model API to send a text message. snippet_files: - - javascriptv3/example_code/bedrock-runtime/models/mistral_ai/mistral_7b.js + - javascriptv3/example_code/bedrock-runtime/models/mistral/invoke_mistral_7b.js services: bedrock-runtime: {InvokeModel} @@ -841,7 +841,7 @@ bedrock-runtime_InvokeModelWithResponseStream_AnthropicClaude: excerpts: - description: Use the Invoke Model API to send a text message and print the response stream. snippet_files: - - javascriptv3/example_code/bedrock-runtime/models/anthropic_claude/claude_3.js + - javascriptv3/example_code/bedrock-runtime/models/anthropicClaude/invoke_claude_3.js services: bedrock-runtime: {InvokeModelWithResponseStream} diff --git a/dotnetv3/Bedrock-runtime/README.md b/dotnetv3/Bedrock-runtime/README.md index e65e9342cfd..69006e64b45 100644 --- a/dotnetv3/Bedrock-runtime/README.md +++ b/dotnetv3/Bedrock-runtime/README.md @@ -7,19 +7,14 @@ Shows how to use the AWS SDK for .NET to work with Amazon Bedrock Runtime. -_Amazon Bedrock Runtime is a fully managed service that makes it easy to use foundation models from third-party -providers and Amazon._ +_Amazon Bedrock Runtime is a fully managed service that makes it easy to use foundation models from third-party providers and Amazon._ ## ⚠ Important -* Running this code might result in charges to your AWS account. For more details, - see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/). +* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/). * Running the tests might result in charges to your AWS account. -* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform - the task. For more information, - see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). -* This code is not tested in every AWS Region. For more information, - see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). +* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). +* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). @@ -33,7 +28,6 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3 - ### AI21 Labs Jurassic-2 - [Converse API](Models/Ai21LabsJurassic2/Converse/Converse.csx#L4) @@ -78,6 +72,7 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3 - [InvokeModel API](Models/Mistral/InvokeModel/InvokeModel.csx#L4) - [InvokeModel API with response stream](Models/Mistral/InvokeModelWithResponseStream/InvokeModelWithResponseStream.csx#L4) + @@ -106,10 +101,13 @@ Alternatively, you can run the example from within your IDE. + + ### Tests ⚠ Running tests might result in charges to your AWS account. + To find instructions for running these tests, see the [README](../README.md#Tests) in the `dotnetv3` folder. diff --git a/javascriptv3/example_code/bedrock-runtime/README.md b/javascriptv3/example_code/bedrock-runtime/README.md index e173dc1b885..0e504dbbcc2 100644 --- a/javascriptv3/example_code/bedrock-runtime/README.md +++ b/javascriptv3/example_code/bedrock-runtime/README.md @@ -47,21 +47,21 @@ functions within the same service. ### AI21 Labs Jurassic-2 -- [Converse API](models/old/ai21_labs_jurassic2/converse.js#L4) -- [InvokeModel API](models/ai21_labs_jurassic2/jurassic2.js) +- [Converse API](models/ai21LabsJurassic2/converse.js#L4) +- [InvokeModel API](models/ai21LabsJurassic2/invoke_model.js) ### Amazon Titan Text -- [Converse API](models/old/amazon_titan/converse.js#L4) +- [Converse API](models/amazonTitanText/converse.js#L4) - [Converse API with response stream](models/amazonTitanText/converseStream.js#L4) -- [InvokeModel API](models/amazon_titan/titan_text.js) +- [InvokeModel API](models/amazonTitanText/invoke_model.js) ### Anthropic Claude -- [Converse API](models/old/anthropic_claude/converse.js#L4) +- [Converse API](models/anthropicClaude/converse.js#L4) - [Converse API with response stream](models/anthropicClaude/converseStream.js#L4) -- [InvokeModel API](models/anthropic_claude/claude_3.js) -- [InvokeModel API with response stream](models/anthropic_claude/claude_3.js) +- [InvokeModel API](models/anthropicClaude/invoke_claude_3.js) +- [InvokeModel API with response stream](models/anthropicClaude/invoke_claude_3.js) ### Cohere Command @@ -72,16 +72,16 @@ functions within the same service. - [All models: Converse API](models/metaLlama/converse.js#L4) - [All models: Converse API with response stream](models/metaLlama/converseStream.js#L4) -- [Llama 2: InvokeModel API](models/meta/llama2/invoke_model_quickstart.js#L4) -- [Llama 2: InvokeModel API with a response stream](models/meta/llama2/invoke_model_with_response_stream_quickstart.js#L4) -- [Llama 3: InvokeModel API](models/meta/llama3/invoke_model_quickstart.js#L4) -- [Llama 3: InvokeModel API with a response stream](models/meta/llama3/invoke_model_with_response_stream_quickstart.js#L4) +- [Llama 2: InvokeModel API](models/metaLlama/llama2/invoke_model_quickstart.js#L4) +- [Llama 2: InvokeModel API with a response stream](models/metaLlama/llama2/invoke_model_with_response_stream_quickstart.js#L4) +- [Llama 3: InvokeModel API](models/metaLlama/llama3/invoke_model_quickstart.js#L4) +- [Llama 3: InvokeModel API with a response stream](models/metaLlama/llama3/invoke_model_with_response_stream_quickstart.js#L4) ### Mistral AI - [Converse API](models/mistral/converse.js#L4) - [Converse API with response stream](models/mistral/converseStream.js#L4) -- [InvokeModel API](models/mistral_ai/mistral_7b.js) +- [InvokeModel API](models/mistral/invoke_mistral_7b.js)