diff --git a/src/Bridge/Anthropic/PlatformFactory.php b/src/Bridge/Anthropic/PlatformFactory.php index 38e76868..d22f3bc8 100644 --- a/src/Bridge/Anthropic/PlatformFactory.php +++ b/src/Bridge/Anthropic/PlatformFactory.php @@ -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]); }