← All changes
|
inc/TemplateHooks/Admin/AI/AdminEditWithAITemplate.php
+3
-3
4.4.2
→
4.4.9
View file →
| @@ -746,10 +746,10 @@ | ||
| 746 | 746 | |
| 747 | 747 | public function html_image_step_1(): string { |
| 748 | 748 | $model_type = LP_Settings::instance()->get( 'open_ai_image_model_type' ); |
| 749 | 749 | $options = $this->config; |
| 750 | - $size_opts = $options[ "image-size-$model_type" ] ?? []; | |
| 751 | - $quality_opts = $options[ "image-quality-$model_type" ] ?? $options['image-quality'] ?? []; | |
| 750 | + $size_opts = $options[ "image-size-$model_type" ] ?? [ 'auto' ]; | |
| 751 | + $quality_opts = $options[ "image-quality-$model_type" ] ?? $options['image-quality'] ?? [ 'auto' ]; | |
| 752 | 752 | |
| 753 | 753 | $components = [ |
| 754 | 754 | 'step' => '<div class="step-content active" data-step="1">', |
| 755 | 755 | 'title' => sprintf( |
| @@ -842,9 +842,9 @@ | ||
| 842 | 842 | <input name="outputs" value="2" type="number" /> |
| 843 | 843 | <p class="field-description">%s</p> |
| 844 | 844 | </div>', |
| 845 | 845 | esc_html__( 'Outputs', 'learnpress' ), |
| 846 | - esc_html__( 'Number of images you want the system to generate (model dall-e-3 only 1 supported).', 'learnpress' ) | |
| 846 | + esc_html__( 'Number of images you want the system to generate.', 'learnpress' ) | |
| 847 | 847 | ), |
| 848 | 848 | 'form-grid-end' => '</div>', |
| 849 | 849 | 'step_close' => '</div>', |
| 850 | 850 | ]; |