diff --git a/examples/image-generator-dall-e-2.php b/examples/image-generator-dall-e-2.php index 2544fac..3f3b6a6 100644 --- a/examples/image-generator-dall-e-2.php +++ b/examples/image-generator-dall-e-2.php @@ -15,10 +15,9 @@ $platform = PlatformFactory::create($_ENV['OPENAI_API_KEY']); $response = $platform->request( - model: new DallE(), + model: new DallE(), // Utilize Dall-E 2 version in default input: 'A cartoon-style elephant with a long trunk and large ears.', options: [ - 'version' => DallE::DALL_E_2, // Utilize Dall-E 2 version 'response_format' => 'url', // Generate response as URL 'n' => 2, // Generate multiple images for example ], diff --git a/examples/image-generator-dall-e-3.php b/examples/image-generator-dall-e-3.php index fd2693a..fd244ec 100644 --- a/examples/image-generator-dall-e-3.php +++ b/examples/image-generator-dall-e-3.php @@ -17,11 +17,8 @@ $platform = PlatformFactory::create($_ENV['OPENAI_API_KEY']); $response = $platform->request( - model: new DallE(), + model: new DallE(version: DallE::DALL_E_3), input: 'A cartoon-style elephant with a long trunk and large ears.', - options: [ - 'version' => DallE::DALL_E_3, // Utilize Dall-E 3 version - ], ); if ($response instanceof AsyncResponse) {