Skip to content

Commit 9ef5ad0

Browse files
quintesNZDennisTraub
authored andcommitted
Bedrock constructor argument corrections.
1 parent c17470c commit 9ef5ad0

File tree

8 files changed

+3287
-11
lines changed

8 files changed

+3287
-11
lines changed

php/example_code/bedrock-runtime/GettingStartedWithBedrockRuntime.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
# snippet-start:[php.example_code.bedrock-runtime.basics.scenario]
1212
namespace BedrockRuntime;
1313

14+
use Aws\BedrockRuntime\BedrockRuntimeClient;
15+
use BedrockRuntime\BedrockRuntimeService;
16+
17+
1418
class GettingStartedWithBedrockRuntime
1519
{
1620
protected BedrockRuntimeService $bedrockRuntimeService;
@@ -28,7 +32,7 @@ public function runExample()
2832
'profile' => 'default',
2933
];
3034

31-
$bedrockRuntimeService = new BedrockRuntimeService($clientArgs);
35+
$bedrockRuntimeService = new BedrockRuntimeService(null, $clientArgs['region'], $clientArgs['version'], $clientArgs['profile']);
3236

3337
$prompt = 'In one paragraph, who are you?';
3438

php/example_code/bedrock-runtime/composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
"BedrockRuntime\\": "../bedrock-runtime/",
1212
"AwsUtilities\\": "../aws_utilities/"
1313
}
14+
},
15+
"require-dev": {
16+
"phpunit/phpunit": "^11.3"
1417
}
15-
}
18+
}

0 commit comments

Comments
 (0)