From d529ba14c2ff77a601e1de6335bafd10e5adcafd Mon Sep 17 00:00:00 2001 From: Dennis Traub Date: Fri, 1 Dec 2023 18:25:51 +0100 Subject: [PATCH] Add metadata and regenerate Readme --- .../metadata/bedrock-runtime_metadata.yaml | 18 ++++++++++++++++++ gov2/bedrock-runtime/README.md | 9 +++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.doc_gen/metadata/bedrock-runtime_metadata.yaml b/.doc_gen/metadata/bedrock-runtime_metadata.yaml index 69e8bbce136..20516b5f8e5 100644 --- a/.doc_gen/metadata/bedrock-runtime_metadata.yaml +++ b/.doc_gen/metadata/bedrock-runtime_metadata.yaml @@ -252,6 +252,23 @@ bedrock-runtime_InvokeStableDiffusionAsync: services: bedrock-runtime: {InvokeModel} +bedrock-runtime_InvokeTitanImage: + title: Invoke Amazon Titan on &BR; to generate images + title_abbrev: Image generation with Amazon Titan + synopsis: invoke the Amazon Titan on &BR; to generate images. + category: + languages: + Go: + versions: + - sdk_version: 2 + github: gov2/bedrock-runtime + excerpts: + - description: Invoke the Amazon Titan image generation model. + snippet_tags: + - gov2.bedrock-runtime.InvokeTitanImage + services: + bedrock-runtime: {InvokeModel} + bedrock-runtime_InvokeModelWithResponseStream: title: Invoke Anthropic Claude on &BR; to run an inference with a response stream title_abbrev: Invoke Anthropic Claude on &BR; and process the response stream @@ -293,6 +310,7 @@ bedrock-runtime_Scenario_Invoke_models: - Generate text with Anthropic Claude. - Generate text with AI21 Labs Jurassic-2. - Generate text with Meta Llama 2 Chat. + - Generate an image with the Amazon Titan Image Generator. category: Scenarios languages: PHP: diff --git a/gov2/bedrock-runtime/README.md b/gov2/bedrock-runtime/README.md index 40d53347060..5169b06a25e 100644 --- a/gov2/bedrock-runtime/README.md +++ b/gov2/bedrock-runtime/README.md @@ -1,4 +1,4 @@ - + # Amazon Bedrock Runtime code examples for the SDK for Go V2 ## Overview @@ -40,10 +40,11 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `gov2` fo Code excerpts that show you how to call individual service functions. -* [Invoke AI21 Labs Jurassic-2 on Amazon Bedrock](actions/invoke_model.go#L86) (`InvokeModel`) +* [Image generation with Amazon Titan](actions/invoke_model.go#L178) (`InvokeModel`) +* [Invoke AI21 Labs Jurassic-2 on Amazon Bedrock](actions/invoke_model.go#L78) (`InvokeModel`) * [Invoke Anthropic Claude on Amazon Bedrock](actions/invoke_model.go#L27) (`InvokeModel`) -* [Invoke Anthropic Claude on Amazon Bedrock and process the response stream](actions/invoke_model_with_response_stream.go#L29) (`InvokeModelWithResponseStream`) -* [Invoke Meta Llama 2 on Amazon Bedrock](actions/invoke_model.go#L138) (`InvokeModel`) +* [Invoke Anthropic Claude on Amazon Bedrock and process the response stream](actions/invoke_model_with_response_stream.go#L30) (`InvokeModelWithResponseStream`) +* [Invoke Meta Llama 2 on Amazon Bedrock](actions/invoke_model.go#L130) (`InvokeModel`) ### Scenarios