Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go: Add code examples to demonstrate the InvokeModel and InvokeModelWithResponseStream actions #5679

Merged
merged 63 commits into from
Dec 4, 2023

Conversation

DennisTraub
Copy link
Collaborator

@DennisTraub DennisTraub commented Nov 16, 2023

This PR add a number of code examples including their respective tests for the Amazon Bedrock Runtime API:

  • Hello Bedrock Runtime: A quick example to get started with the Bedrock Runtime
  • Action: Text generation with Anthropic Claude (InvokeModel)
  • Action: Text generation with AI21 Labs Jurassic-2 (InvokeModel)
  • Action: Text generation with Meta Llama 2 Chat (InvokeModel)
  • Action: Asynchronous processing of a response stream, using Anthropic Claude as an example (InvokeModelWithResponseSteam)
  • Action: Invoke Amazon Titan to generate images (InvokeModel)
  • Scenario: Synchronous and asynchronous invocation of multiple models (InvokeModel, InvokeModelWithResponseSteam)

This PR concludes Issue #5640


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added Go-v2 This issue relates to the AWS SDK for Go V2 Python This issue relates to the AWS SDK for Python (boto3) Java-v2 This issue relates to the AWS SDK for Java V2 labels Nov 16, 2023
@DennisTraub DennisTraub force-pushed the go-invokemodel branch 2 times, most recently from 86a5ca0 to 46241a9 Compare November 17, 2023 19:36
@meyertst-aws meyertst-aws self-assigned this Nov 22, 2023
@meyertst-aws meyertst-aws self-requested a review November 22, 2023 17:49
@github-actions github-actions bot added PHP This issue relates to the AWS SDK for PHP and removed Python This issue relates to the AWS SDK for Python (boto3) labels Nov 23, 2023
gov2/bedrock-runtime/stubs/go.mod Outdated Show resolved Hide resolved
gov2/bedrock-runtime/scenarios/go.mod Outdated Show resolved Hide resolved
gov2/bedrock-runtime/cmd/main.go Outdated Show resolved Hide resolved
gov2/bedrock-runtime/hello/hello.go Outdated Show resolved Hide resolved
@meyertst-aws meyertst-aws added Text Review not needed This contains no text which needs review Task A general update to the code base for language clarification, missing actions, tests, etc. labels Nov 27, 2023
@github-actions github-actions bot added Python This issue relates to the AWS SDK for Python (boto3) and removed Java-v2 This issue relates to the AWS SDK for Java V2 labels Nov 28, 2023
@DennisTraub DennisTraub force-pushed the go-invokemodel branch 3 times, most recently from 28aa8ee to 80695bf Compare November 30, 2023 05:25
@meyertst-aws meyertst-aws added the On Call Review needed This work needs an on-call review label Dec 1, 2023
@rlhagerm rlhagerm added On Call Review complete On call review complete and removed On Call Review needed This work needs an on-call review labels Dec 4, 2023
@rlhagerm rlhagerm merged commit b41b95e into awsdocs:main Dec 4, 2023
16 of 18 checks passed
@DennisTraub DennisTraub deleted the go-invokemodel branch December 5, 2023 09:55
ford-at-aws pushed a commit that referenced this pull request Dec 15, 2023
meyertst-aws pushed a commit to meyertst-aws/aws-doc-sdk-examples that referenced this pull request Jan 4, 2024
max-webster pushed a commit to max-webster/aws-doc-sdk-examples that referenced this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go-v2 This issue relates to the AWS SDK for Go V2 On Call Review complete On call review complete PHP This issue relates to the AWS SDK for PHP Python This issue relates to the AWS SDK for Python (boto3) Task A general update to the code base for language clarification, missing actions, tests, etc. Text Review not needed This contains no text which needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants