Add command-a-vision support (#4340) * Add command-a-vision support * Fix image is not inlined * Add image captioning support

a848bc38033b29afb58ee6a0e410acc2f1c57476

equal-l2 <eng.equall2@gmail.com>

Signed
3 files changed, +6 -3Showing whitespace changes
public/index.html+3 -2
@@ -1995,7 +1995,7 @@
1995 <strong data-i18n="enable_functions_desc_4">Not supported when Prompt Post-Processing with "no tools" is used!</strong>1995 <strong data-i18n="enable_functions_desc_4">Not supported when Prompt Post-Processing with "no tools" is used!</strong>
1996 </div>1996 </div>
1997 </div>1997 </div>
1998 <div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot">1998 <div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot,cohere">
1999 <label for="openai_image_inlining" class="checkbox_label flexWrap widthFreeExpand">1999 <label for="openai_image_inlining" class="checkbox_label flexWrap widthFreeExpand">
2000 <input id="openai_image_inlining" type="checkbox" />2000 <input id="openai_image_inlining" type="checkbox" />
2001 <span data-i18n="Send inline images">Send inline images</span>2001 <span data-i18n="Send inline images">Send inline images</span>
@@ -2007,7 +2007,7 @@
2007 <code><i class="fa-solid fa-wand-magic-sparkles"></i></code>2007 <code><i class="fa-solid fa-wand-magic-sparkles"></i></code>
2008 <span data-i18n="image_inlining_hint_3">menu to attach an image file to the chat.</span>2008 <span data-i18n="image_inlining_hint_3">menu to attach an image file to the chat.</span>
2009 </div>2009 </div>
2010 <div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations">2010 <div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations,cohere">
2011 <div class="flex-container oneline-dropdown">2011 <div class="flex-container oneline-dropdown">
2012 <label for="openai_inline_image_quality" data-i18n="Inline Image Quality">2012 <label for="openai_inline_image_quality" data-i18n="Inline Image Quality">
2013 Inline Image Quality2013 Inline Image Quality
@@ -3532,6 +3532,7 @@
3532 <option value="command-r-plus-08-2024">command-r-plus-08-2024</option>3532 <option value="command-r-plus-08-2024">command-r-plus-08-2024</option>
3533 <option value="command-r7b-12-2024">command-r7b-12-2024</option>3533 <option value="command-r7b-12-2024">command-r7b-12-2024</option>
3534 <option value="command-a-03-2025">command-a-03-2025</option>3534 <option value="command-a-03-2025">command-a-03-2025</option>
3535 <option value="command-a-vision-07-2025">command-a-vision-07-2025</option>
3535 </optgroup>3536 </optgroup>
3536 <optgroup label="Nightly">3537 <optgroup label="Nightly">
3537 <option value="command-light-nightly">command-light-nightly</option>3538 <option value="command-light-nightly">command-light-nightly</option>
public/scripts/extensions/caption/settings.html+1 -0
@@ -42,6 +42,7 @@
42 <select id="caption_multimodal_model" class="flex1 text_pole">42 <select id="caption_multimodal_model" class="flex1 text_pole">
43 <option data-type="cohere" value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option>43 <option data-type="cohere" value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option>
44 <option data-type="cohere" value="c4ai-aya-vision-32b">c4ai-aya-vision-32b</option>44 <option data-type="cohere" value="c4ai-aya-vision-32b">c4ai-aya-vision-32b</option>
45 <option data-type="cohere" value="command-a-vision-07-2025">command-a-vision-07-2025</option>
45 <option data-type="mistral" value="pixtral-12b-latest">pixtral-12b-latest</option>46 <option data-type="mistral" value="pixtral-12b-latest">pixtral-12b-latest</option>
46 <option data-type="mistral" value="pixtral-12b-2409">pixtral-12b-2409</option>47 <option data-type="mistral" value="pixtral-12b-2409">pixtral-12b-2409</option>
47 <option data-type="mistral" value="pixtral-large-latest">pixtral-large-latest</option>48 <option data-type="mistral" value="pixtral-large-latest">pixtral-large-latest</option>
public/scripts/openai.js+2 -1
@@ -4696,7 +4696,7 @@ async function onModelChange() {
4696 else if (['command-light-nightly', 'command-light', 'command'].includes(oai_settings.cohere_model)) {4696 else if (['command-light-nightly', 'command-light', 'command'].includes(oai_settings.cohere_model)) {
4697 $('#openai_max_context').attr('max', max_4k);4697 $('#openai_max_context').attr('max', max_4k);
4698 }4698 }
4699 else if (oai_settings.cohere_model.includes('command-r') || ['c4ai-aya-23', 'c4ai-aya-expanse-32b', 'command-nightly'].includes(oai_settings.cohere_model)) {4699 else if (oai_settings.cohere_model.includes('command-r') || ['c4ai-aya-23', 'c4ai-aya-expanse-32b', 'command-nightly', 'command-a-vision-07-2025'].includes(oai_settings.cohere_model)) {
4700 $('#openai_max_context').attr('max', max_128k);4700 $('#openai_max_context').attr('max', max_128k);
4701 }4701 }
4702 else if (['command-a-03-2025'].includes(oai_settings.cohere_model)) {4702 else if (['command-a-03-2025'].includes(oai_settings.cohere_model)) {
@@ -5267,6 +5267,7 @@ export function isImageInliningSupported() {
5267 'claude-sonnet-4',5267 'claude-sonnet-4',
5268 // Cohere5268 // Cohere
5269 'c4ai-aya-vision',5269 'c4ai-aya-vision',
5270 'command-a-vision',
5270 // Google AI Studio5271 // Google AI Studio
5271 'gemini-1.5',5272 'gemini-1.5',
5272 'gemini-2.0',5273 'gemini-2.0',