Skip to content

Swift: Added example code for text to image generation with Amazon Nova Canvas for Bedrock #7452

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

Open
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

monadierickx
Copy link
Contributor

This pull request includes one code example for image generation with Nova Canvas.


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 the Swift This issue relates to the AWS SDK for Swift label May 19, 2025
@sebsto
Copy link

sebsto commented May 19, 2025

I think you need to remove the Llama code from this PR. Start from the main branch. Otherwise looks good, I left a few comments at code level.

Copy link

@sebsto sebsto left a comment

Choose a reason for hiding this comment

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

some suggestions and questions

@DennisTraub DennisTraub self-requested a review May 20, 2025 07:19
@@ -423,6 +423,14 @@ bedrock-runtime_Converse_MetaLlama:
- description: Send a text message to Meta Llama, using Bedrock's Converse API.
snippet_tags:
- javascript.v3.bedrock-runtime.Converse_MetaLlama
Swift:
Copy link
Contributor

Choose a reason for hiding this comment

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

This change appears to be carried over from PR #7434. Could you please remove it to keep PRs isolated? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will do this!

@@ -708,6 +716,14 @@ bedrock-runtime_ConverseStream_MetaLlama:
- description: Send a text message to Meta Llama, using Bedrock's Converse API and process the response stream in real-time.
snippet_tags:
- javascript.v3.bedrock-runtime.ConverseStream_MetaLlama
Swift:
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, please remove.

Copy link
Contributor

@DennisTraub DennisTraub left a comment

Choose a reason for hiding this comment

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

Several changes in this PR appear to be carried over from PR #7434. Please remove these unrelated modifications to maintain isolated PRs. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Carried over from #7434. Please remove.

Copy link
Contributor

Choose a reason for hiding this comment

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

Carried over from #7434. Please remove.

Copy link
Contributor

Choose a reason for hiding this comment

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

Carried over from #7434. Please remove.

@monadierickx monadierickx requested a review from DennisTraub May 22, 2025 11:59
@sebsto
Copy link

sebsto commented Jun 5, 2025

@DennisTraub can you review this version and help to move it forward ?

shepazon and others added 13 commits June 16, 2025 14:37
…enario_user_pool_with_mfa (awsdocs#7454)

Bump aws-cdk-lib in /resources/cdk/cognito_scenario_user_pool_with_mfa

Bumps [aws-cdk-lib](https://github.com/aws/aws-cdk/tree/HEAD/packages/aws-cdk-lib) from 2.189.0 to 2.189.1.
- [Release notes](https://github.com/aws/aws-cdk/releases)
- [Changelog](https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.alpha.md)
- [Commits](https://github.com/aws/aws-cdk/commits/v2.189.1/packages/aws-cdk-lib)

---
updated-dependencies:
- dependency-name: aws-cdk-lib
  dependency-version: 2.189.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ssic-2 (awsdocs#7445)

* Add .local config

* Add Nova Text PHP example

* Remove PHP examples for Jurassic-2 (deprecated)

* Regenerate docs

* Revert add .gitattributes

* Fix formatting
dependabot bot and others added 5 commits June 16, 2025 14:37
… /javav2/example_code/lookoutvision (awsdocs#7475)

Bump com.fasterxml.jackson.core:jackson-core

Bumps [com.fasterxml.jackson.core:jackson-core](https://github.com/FasterXML/jackson-core) from 2.12.5 to 2.13.0.
- [Commits](FasterXML/jackson-core@jackson-core-2.12.5...jackson-core-2.13.0)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.13.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…gent (awsdocs#7477)

Bump requests in /python/example_code/bedrock-agent

Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.31.0...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [requests](https://github.com/psf/requests) from 2.32.0 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.32.0...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot added DotNet-v3 This issue relates to the AWS SDK for .NET V3 Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Kotlin This issue relates to the AWS SDK for Kotlin PHP This issue relates to the AWS SDK for PHP Python This issue relates to the AWS SDK for Python (boto3) Ruby This issue relates to the AWS SDK for Ruby Rust This issue relates to the AWS SDK for Rust (Preview) CDK Relates to the AWS Cloud Development Kit (CDK) Java-v2 This issue relates to the AWS SDK for Java V2 GitHub settings This affects GitHub settings Tools This issue relates to a custom tooling to streamline development tasks labels Jun 16, 2025
@monadierickx monadierickx marked this pull request as ready for review June 16, 2025 12:39
@github-actions github-actions bot removed DotNet-v3 This issue relates to the AWS SDK for .NET V3 Javascript-v3 This issue relates to the AWS SDK for Javascript V3 Kotlin This issue relates to the AWS SDK for Kotlin PHP This issue relates to the AWS SDK for PHP Python This issue relates to the AWS SDK for Python (boto3) Ruby This issue relates to the AWS SDK for Ruby Rust This issue relates to the AWS SDK for Rust (Preview) CDK Relates to the AWS Cloud Development Kit (CDK) Java-v2 This issue relates to the AWS SDK for Java V2 GitHub settings This affects GitHub settings Tools This issue relates to a custom tooling to streamline development tasks labels Jun 16, 2025
@sebsto
Copy link

sebsto commented Jun 16, 2025

@DennisTraub I think @monadierickx did the required changes. Can you review ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Swift This issue relates to the AWS SDK for Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants