File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 15
15
$ platform = PlatformFactory::create ($ _ENV ['OPENAI_API_KEY ' ]);
16
16
17
17
$ response = $ platform ->request (
18
- model: new DallE (),
18
+ model: new DallE (), // Utilize Dall-E 2 version in default
19
19
input: 'A cartoon-style elephant with a long trunk and large ears. ' ,
20
20
options: [
21
- 'version ' => DallE::DALL_E_2 , // Utilize Dall-E 2 version
22
21
'response_format ' => 'url ' , // Generate response as URL
23
22
'n ' => 2 , // Generate multiple images for example
24
23
],
Original file line number Diff line number Diff line change 17
17
$ platform = PlatformFactory::create ($ _ENV ['OPENAI_API_KEY ' ]);
18
18
19
19
$ response = $ platform ->request (
20
- model: new DallE (),
20
+ model: new DallE (version: DallE:: DALL_E_3 ),
21
21
input: 'A cartoon-style elephant with a long trunk and large ears. ' ,
22
22
options: [
23
- 'version ' => DallE:: DALL_E_3 , // Utilize Dall-E 3 version
23
+ 'response_format ' => ' url ' , // Generate response as URL
24
24
],
25
25
);
26
26
You can’t perform that action at this time.
0 commit comments