diff --git a/php/example_code/bedrock-runtime/BedrockRuntimeService.php b/php/example_code/bedrock-runtime/BedrockRuntimeService.php index 1940fbe2c38..b035b9beb93 100644 --- a/php/example_code/bedrock-runtime/BedrockRuntimeService.php +++ b/php/example_code/bedrock-runtime/BedrockRuntimeService.php @@ -149,7 +149,7 @@ public function invokeStableDiffusion(string $prompt, int $seed, string $style_p $base64_image_data = ""; try { - $modelId = 'stability.stable-diffusion-xl'; + $modelId = 'stability.stable-diffusion-xl-v1'; $body = [ 'text_prompts' => [ diff --git a/php/example_code/bedrock-runtime/composer.json b/php/example_code/bedrock-runtime/composer.json index 0ddc96ac8ad..c9c4018ad15 100644 --- a/php/example_code/bedrock-runtime/composer.json +++ b/php/example_code/bedrock-runtime/composer.json @@ -1,6 +1,6 @@ { "require": { - "aws/aws-sdk-php": "^3.286", + "aws/aws-sdk-php": "^3.321", "guzzlehttp/guzzle": "^7.8" }, "autoload": { diff --git a/php/example_code/bedrock-runtime/composer.lock b/php/example_code/bedrock-runtime/composer.lock index 9b4e76abcda..c0bf583717a 100644 --- a/php/example_code/bedrock-runtime/composer.lock +++ b/php/example_code/bedrock-runtime/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "100037ca4a3caf50e3f383e2b925fce4", + "content-hash": "ad69c52758d03289f930a5fedc6793f4", "packages": [ { "name": "aws/aws-crt-php", @@ -62,16 +62,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.288.1", + "version": "3.321.6", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "a1dfa12c7165de0b731ae8074c4ba1f3ae733f89" + "reference": "3dc53a79677dd1f0e682dfc05f9815901ec7bf58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a1dfa12c7165de0b731ae8074c4ba1f3ae733f89", - "reference": "a1dfa12c7165de0b731ae8074c4ba1f3ae733f89", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3dc53a79677dd1f0e682dfc05f9815901ec7bf58", + "reference": "3dc53a79677dd1f0e682dfc05f9815901ec7bf58", "shasum": "" }, "require": { @@ -124,7 +124,10 @@ ], "psr-4": { "Aws\\": "src/" - } + }, + "exclude-from-classmap": [ + "src/data/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -151,9 +154,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.288.1" + "source": "https://github.com/aws/aws-sdk-php/tree/3.321.6" }, - "time": "2023-11-22T19:35:38+00:00" + "time": "2024-09-06T18:06:38+00:00" }, { "name": "guzzlehttp/guzzle", diff --git a/php/example_code/bedrock-runtime/tests/BedrockRuntimeTests.php b/php/example_code/bedrock-runtime/tests/BedrockRuntimeTests.php index 4330cd86546..311ece040b5 100644 --- a/php/example_code/bedrock-runtime/tests/BedrockRuntimeTests.php +++ b/php/example_code/bedrock-runtime/tests/BedrockRuntimeTests.php @@ -24,7 +24,7 @@ class BedrockRuntimeTests extends TestCase public function setup(): void { $clientArgs = [ - 'region' => 'us-west-2', + 'region' => 'us-east-1', 'version' => 'latest', 'profile' => 'default', ]; diff --git a/php/example_code/bedrock/composer.json b/php/example_code/bedrock/composer.json index c4754c20083..ab2df3b05d3 100644 --- a/php/example_code/bedrock/composer.json +++ b/php/example_code/bedrock/composer.json @@ -1,6 +1,6 @@ { "require": { - "aws/aws-sdk-php": "^3.286", + "aws/aws-sdk-php": "^3.321", "guzzlehttp/guzzle": "^7.8" }, "autoload": { diff --git a/php/example_code/bedrock/composer.lock b/php/example_code/bedrock/composer.lock index 9b4e76abcda..c0bf583717a 100644 --- a/php/example_code/bedrock/composer.lock +++ b/php/example_code/bedrock/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "100037ca4a3caf50e3f383e2b925fce4", + "content-hash": "ad69c52758d03289f930a5fedc6793f4", "packages": [ { "name": "aws/aws-crt-php", @@ -62,16 +62,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.288.1", + "version": "3.321.6", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "a1dfa12c7165de0b731ae8074c4ba1f3ae733f89" + "reference": "3dc53a79677dd1f0e682dfc05f9815901ec7bf58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a1dfa12c7165de0b731ae8074c4ba1f3ae733f89", - "reference": "a1dfa12c7165de0b731ae8074c4ba1f3ae733f89", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3dc53a79677dd1f0e682dfc05f9815901ec7bf58", + "reference": "3dc53a79677dd1f0e682dfc05f9815901ec7bf58", "shasum": "" }, "require": { @@ -124,7 +124,10 @@ ], "psr-4": { "Aws\\": "src/" - } + }, + "exclude-from-classmap": [ + "src/data/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -151,9 +154,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.288.1" + "source": "https://github.com/aws/aws-sdk-php/tree/3.321.6" }, - "time": "2023-11-22T19:35:38+00:00" + "time": "2024-09-06T18:06:38+00:00" }, { "name": "guzzlehttp/guzzle",