Skip to content

Commit

Permalink
Bedrock constructor argument corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
quintesNZ committed Sep 9, 2024
1 parent a937554 commit 7e78d0e
Show file tree
Hide file tree
Showing 8 changed files with 3,287 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
# snippet-start:[php.example_code.bedrock-runtime.basics.scenario]
namespace BedrockRuntime;

use Aws\BedrockRuntime\BedrockRuntimeClient;
use BedrockRuntime\BedrockRuntimeService;


class GettingStartedWithBedrockRuntime
{
protected BedrockRuntimeService $bedrockRuntimeService;
Expand All @@ -28,7 +32,7 @@ public function runExample()
'profile' => 'default',
];

$bedrockRuntimeService = new BedrockRuntimeService($clientArgs);
$bedrockRuntimeService = new BedrockRuntimeService(null, $clientArgs['region'], $clientArgs['version'], $clientArgs['profile']);

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

Expand Down
5 changes: 4 additions & 1 deletion php/example_code/bedrock-runtime/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"BedrockRuntime\\": "../bedrock-runtime/",
"AwsUtilities\\": "../aws_utilities/"
}
},
"require-dev": {
"phpunit/phpunit": "^11.3"
}
}
}
Loading

0 comments on commit 7e78d0e

Please sign in to comment.