Skip to content

Commit

Permalink
fix: expose version for anthropic via platform factory as well (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-hertel authored Dec 8, 2024
1 parent 8d7970f commit 65ba766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bridge/Anthropic/PlatformFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

final readonly class PlatformFactory
{
public static function create(#[\SensitiveParameter] string $apiKey): Platform
public static function create(#[\SensitiveParameter] string $apiKey, string $version = '2023-06-01'): Platform
{
$responseHandler = new ModelHandler(new EventSourceHttpClient(), $apiKey);
$responseHandler = new ModelHandler(new EventSourceHttpClient(), $apiKey, $version);

return new Platform([$responseHandler], [$responseHandler]);
}
Expand Down

0 comments on commit 65ba766

Please sign in to comment.