Skip to content

Commit

Permalink
Fix metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Traub committed May 30, 2024
1 parent 692eadf commit 648dc6d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .doc_gen/metadata/bedrock-runtime_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}

Expand Down Expand Up @@ -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}

Expand Down
18 changes: 8 additions & 10 deletions dotnetv3/Bedrock-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ Shows how to use the AWS SDK for .NET to work with Amazon Bedrock Runtime.
<!--custom.overview.start-->
<!--custom.overview.end-->

_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).

<!--custom.important.start-->
<!--custom.important.end-->
Expand All @@ -33,7 +28,6 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3

<!--custom.prerequisites.start-->
<!--custom.prerequisites.end-->

### AI21 Labs Jurassic-2

- [Converse API](Models/Ai21LabsJurassic2/Converse/Converse.csx#L4)
Expand Down Expand Up @@ -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)


<!--custom.examples.start-->
<!--custom.examples.end-->

Expand Down Expand Up @@ -106,10 +101,13 @@ Alternatively, you can run the example from within your IDE.
<!--custom.instructions.start-->
<!--custom.instructions.end-->



### 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.

Expand Down
24 changes: 12 additions & 12 deletions javascriptv3/example_code/bedrock-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)


<!--custom.examples.start-->
Expand Down

0 comments on commit 648dc6d

Please sign in to comment.