| @@ -515,9 +515,8 @@ | ||
| 515 | 515 | <?php |
| 516 | 516 | $content_model = $options['content_model'] ?? ($options['model'] ?? 'gpt-5.1-chat-latest'); |
| 517 | 517 | $models = array( |
| 518 | 518 | 'OpenAI' => array( |
| 519 | - 'gpt-5.5' => 'GPT-5.5', | |
| 520 | 519 | 'gpt-5.4' => 'GPT-5.4', |
| 521 | 520 | 'gpt-5.2' => 'GPT-5.2', |
| 522 | 521 | 'gpt-5.1-chat-latest' => 'GPT-5.1', |
| 523 | 522 | 'gpt-5' => 'GPT-5', |
| @@ -522,23 +521,15 @@ | ||
| 522 | 521 | 'gpt-5.1-chat-latest' => 'GPT-5.1', |
| 523 | 522 | 'gpt-5' => 'GPT-5', |
| 524 | 523 | ), |
| 525 | 524 | 'Anthropic' => array( |
| 526 | - 'claude-opus-4-8' => 'Claude Opus 4.8', | |
| 527 | - 'claude-opus-4-7' => 'Claude Opus 4.7', | |
| 528 | 525 | 'claude-opus-4-6' => 'Claude Opus 4.6', |
| 529 | 526 | 'claude-sonnet-4-6' => 'Claude Sonnet 4.6', |
| 530 | 527 | 'claude-haiku-4-5-20251001' => 'Claude Haiku 4.5', |
| 531 | 528 | ), |
| 532 | 529 | 'Google' => array( |
| 533 | - 'gemini-3.5-flash' => 'Gemini 3.5 Flash', | |
| 534 | - 'gemini-3.1-pro-preview' => 'Gemini 3.1 Pro', | |
| 535 | - 'gemini-3-flash-preview' => 'Gemini 3 Flash', | |
| 536 | - 'gemini-3.1-flash-lite' => 'Gemini 3.1 Flash-Lite', | |
| 537 | - 'gemini-3.1-flash-lite-preview' => 'Gemini 3.1 Flash-Lite (Preview)', | |
| 538 | - 'gemini-2.5-pro' => 'Gemini 2.5 Pro', | |
| 539 | - 'gemini-2.5-flash' => 'Gemini 2.5 Flash', | |
| 540 | - 'gemini-2.5-flash-lite' => 'Gemini 2.5 Flash-Lite', | |
| 530 | + 'gemini-3-pro-preview' => 'Gemini 3 Pro', | |
| 531 | + 'gemini-2.5-pro' => 'Gemini 2.5 Pro', | |
| 541 | 532 | ), |
| 542 | 533 | 'xAI' => array( |
| 543 | 534 | 'grok-4-0709' => 'Grok 4', |
| 544 | 535 | 'grok-4-1-fast-non-reasoning' => 'Grok 4.1 Fast', |
| @@ -565,9 +556,8 @@ | ||
| 565 | 556 | <div class="mxch-field-control"> |
| 566 | 557 | <?php $image_model = $options['content_image_model'] ?? 'gpt-image-1.5'; ?> |
| 567 | 558 | <select id="mxch-image-model" data-field="content_image_model" class="mxch-cg-select"> |
| 568 | 559 | <optgroup label="<?php esc_attr_e('OpenAI', 'mxchat'); ?>"> |
| 569 | - <option value="gpt-image-2" <?php selected($image_model, 'gpt-image-2'); ?>><?php esc_html_e('GPT Image 2 (Latest)', 'mxchat'); ?></option> | |
| 570 | 560 | <option value="gpt-image-1.5" <?php selected($image_model, 'gpt-image-1.5'); ?>><?php esc_html_e('GPT Image 1.5', 'mxchat'); ?></option> |
| 571 | 561 | </optgroup> |
| 572 | 562 | <optgroup label="<?php esc_attr_e('xAI', 'mxchat'); ?>"> |
| 573 | 563 | <option value="grok-imagine-image-pro" <?php selected($image_model, 'grok-imagine-image-pro'); ?>><?php esc_html_e('Grok Imagine Pro', 'mxchat'); ?></option> |
| @@ -580,32 +570,8 @@ | ||
| 580 | 570 | </select> |
| 581 | 571 | </div> |
| 582 | 572 | <p class="mxch-field-description"><?php esc_html_e('Select the AI model used for generating images within your content.', 'mxchat'); ?></p> |
| 583 | 573 | </div> |
| 584 | - | |
| 585 | - <!-- Image Quality (GPT Image only) --> | |
| 586 | - <div class="mxch-field"> | |
| 587 | - <label class="mxch-field-label" for="mxch-image-quality"><?php esc_html_e('Image Quality', 'mxchat'); ?></label> | |
| 588 | - <div class="mxch-field-control"> | |
| 589 | - <?php $image_quality = $options['content_image_quality'] ?? 'auto'; ?> | |
| 590 | - <?php $quality_supported = (strpos($image_model, 'gpt-image') === 0); ?> | |
| 591 | - <select id="mxch-image-quality" data-field="content_image_quality" class="mxch-cg-select"<?php echo $quality_supported ? '' : ' disabled'; ?>> | |
| 592 | - <option value="auto" <?php selected($image_quality, 'auto'); ?>><?php esc_html_e('Auto (default)', 'mxchat'); ?></option> | |
| 593 | - <option value="low" <?php selected($image_quality, 'low'); ?>><?php esc_html_e('Low (fastest, cheapest)', 'mxchat'); ?></option> | |
| 594 | - <option value="medium" <?php selected($image_quality, 'medium'); ?>><?php esc_html_e('Medium', 'mxchat'); ?></option> | |
| 595 | - <option value="high" <?php selected($image_quality, 'high'); ?>><?php esc_html_e('High (best, slowest)', 'mxchat'); ?></option> | |
| 596 | - </select> | |
| 597 | - </div> | |
| 598 | - <p class="mxch-field-description"><?php esc_html_e('Quality control for OpenAI GPT Image models only. Grok Imagine and Gemini image models ignore this setting (their APIs do not expose an equivalent parameter).', 'mxchat'); ?></p> | |
| 599 | - </div> | |
| 600 | - <script>(function(){ | |
| 601 | - var m = document.getElementById('mxch-image-model'); | |
| 602 | - var q = document.getElementById('mxch-image-quality'); | |
| 603 | - if (!m || !q || q._wired) { return; } q._wired = true; | |
| 604 | - function sync(){ q.disabled = (m.value || '').indexOf('gpt-image') !== 0; } | |
| 605 | - m.addEventListener('change', sync); | |
| 606 | - sync(); | |
| 607 | - })();</script> | |
| 608 | 574 | |
| 609 | 575 | <!-- Enable Image Generation --> |
| 610 | 576 | <div class="mxch-field"> |
| 611 | 577 | <label class="mxch-toggle"> |