PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 3.2.8
MxChat – AI Chatbot & Content Generation for WordPress v3.2.8
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | includes/admin-content-page.php +36 -2 3.2.33.2.8 View file →
@@ -515,8 +515,9 @@
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',
519 520 'gpt-5.4' => 'GPT-5.4',
520 521 'gpt-5.2' => 'GPT-5.2',
521 522 'gpt-5.1-chat-latest' => 'GPT-5.1',
522 523 'gpt-5' => 'GPT-5',
@@ -521,15 +522,23 @@
521 522 'gpt-5.1-chat-latest' => 'GPT-5.1',
522 523 'gpt-5' => 'GPT-5',
523 524 ),
524 525 'Anthropic' => array(
526 + 'claude-opus-4-8' => 'Claude Opus 4.8',
527 + 'claude-opus-4-7' => 'Claude Opus 4.7',
525 528 'claude-opus-4-6' => 'Claude Opus 4.6',
526 529 'claude-sonnet-4-6' => 'Claude Sonnet 4.6',
527 530 'claude-haiku-4-5-20251001' => 'Claude Haiku 4.5',
528 531 ),
529 532 'Google' => array(
530 - 'gemini-3-pro-preview' => 'Gemini 3 Pro',
531 - 'gemini-2.5-pro' => 'Gemini 2.5 Pro',
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',
532 541 ),
533 542 'xAI' => array(
534 543 'grok-4-0709' => 'Grok 4',
535 544 'grok-4-1-fast-non-reasoning' => 'Grok 4.1 Fast',
@@ -556,8 +565,9 @@
556 565 <div class="mxch-field-control">
557 566 <?php $image_model = $options['content_image_model'] ?? 'gpt-image-1.5'; ?>
558 567 <select id="mxch-image-model" data-field="content_image_model" class="mxch-cg-select">
559 568 <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>
560 570 <option value="gpt-image-1.5" <?php selected($image_model, 'gpt-image-1.5'); ?>><?php esc_html_e('GPT Image 1.5', 'mxchat'); ?></option>
561 571 </optgroup>
562 572 <optgroup label="<?php esc_attr_e('xAI', 'mxchat'); ?>">
563 573 <option value="grok-imagine-image-pro" <?php selected($image_model, 'grok-imagine-image-pro'); ?>><?php esc_html_e('Grok Imagine Pro', 'mxchat'); ?></option>
@@ -570,8 +580,32 @@
570 580 </select>
571 581 </div>
572 582 <p class="mxch-field-description"><?php esc_html_e('Select the AI model used for generating images within your content.', 'mxchat'); ?></p>
573 583 </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>
574 608
575 609 <!-- Enable Image Generation -->
576 610 <div class="mxch-field">
577 611 <label class="mxch-toggle">