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

Python: Add Bedrock list_foundation_models example #5633

Conversation

DennisTraub
Copy link
Contributor

@DennisTraub DennisTraub commented Nov 10, 2023

This pull request introduces a code sample with tests, demonstrating how to list available Amazon Bedrock foundation models.

This contribution addresses the first item in issue #5540 (ListFoundationModels)


_By submitting this pull request, I confirm that my contributions are compliant with the Apache 2.0 license terms.

@github-actions github-actions bot added the Python This issue relates to the AWS SDK for Python (boto3) label Nov 10, 2023
@DennisTraub DennisTraub force-pushed the python-bedrock-list-foundation-models branch from 01f5bee to 99218f7 Compare November 11, 2023 07:39
@DavidSouther DavidSouther force-pushed the python-bedrock-list-foundation-models branch from b9c714c to f2a6fba Compare November 13, 2023 14:36
@DavidSouther DavidSouther added the Follow After Scouts, more languages are added to examples as Follows. label Nov 13, 2023
@@ -0,0 +1,18 @@
# zexi 0.4.0
bedrock-ListFoundationModels:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be bedrock_ListFoundationModels (underscore, not -)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,18 @@
# zexi 0.4.0
bedrock-ListFoundationModels:
title: List the available foundation models using an &AWS; SDK
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List the available &BRlong; foundation models using an &AWS; SDK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

# zexi 0.4.0
bedrock-ListFoundationModels:
title: List the available foundation models using an &AWS; SDK
title_abbrev: List available foundation models
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List the available &BR; foundation models

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

bedrock-ListFoundationModels:
title: List the available foundation models using an &AWS; SDK
title_abbrev: List available foundation models
synopsis: list available foundation models
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list available &BR; foundation models

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

github: python/example_code/bedrock
sdkguide:
excerpts:
- description: List the available Bedrock foundation models
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Bedrock/&BRlong;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@DavidSouther DavidSouther added On Call Review needed This work needs an on-call review Text Review not needed This contains no text which needs review labels Nov 13, 2023
@DennisTraub
Copy link
Contributor Author

Closing, consolidated into #5649

@DennisTraub
Copy link
Contributor Author

Closing, consolidated into #5649

@DennisTraub DennisTraub deleted the python-bedrock-list-foundation-models branch November 13, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Follow After Scouts, more languages are added to examples as Follows. On Call Review needed This work needs an on-call review Python This issue relates to the AWS SDK for Python (boto3) Text Review not needed This contains no text which needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants