You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: includes/Classifai/Providers/OpenAI/DallE.php
+45-17
Original file line number
Diff line number
Diff line change
@@ -110,10 +110,7 @@ public function render_provider_fields() {
110
110
[
111
111
'option_index' => static::ID,
112
112
'label_for' => 'quality',
113
-
'options' => [
114
-
'standard' => __( 'Standard', 'classifai' ),
115
-
'hd' => __( 'High Definition', 'classifai' ),
116
-
],
113
+
'options' => self::get_image_quality_options(),
117
114
'default_value' => $settings['quality'],
118
115
'description' => __( 'The quality of the image that will be generated. High Definition creates images with finer details and greater consistency across the image but costs more.', 'classifai' ),
@@ -149,17 +142,51 @@ public function render_provider_fields() {
149
142
[
150
143
'option_index' => static::ID,
151
144
'label_for' => 'style',
152
-
'options' => [
153
-
'vivid' => __( 'Vivid', 'classifai' ),
154
-
'natural' => __( 'Natural', 'classifai' ),
155
-
],
145
+
'options' => self::get_image_style_options(),
156
146
'default_value' => $settings['style'],
157
147
'description' => __( 'The style of the generated images. Vivid causes more hyper-real and dramatic images. Natural causes more natural, less hyper-real looking images.', 'classifai' ),
0 commit comments