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 -3Ignore whitespace
public/index.html+3 -2
@@ -1995,7 +1995,7 @@
19951995 <strong data-i18n="enable_functions_desc_4">Not supported when Prompt Post-Processing with "no tools" is used!</strong>
19961996 </div>
19971997 </div>
19981998 <div class="range-block" data-source="openai,aimlapi,openrouter,mistralai,makersuite,vertexai,claude,custom,xai,pollinations,moonshot,cohere">
19991999 <label for="openai_image_inlining" class="checkbox_label flexWrap widthFreeExpand">
20002000 <input id="openai_image_inlining" type="checkbox" />
20012001 <span data-i18n="Send inline images">Send inline images</span>
@@ -2007,7 +2007,7 @@
20072007 <code><i class="fa-solid fa-wand-magic-sparkles"></i></code>
20082008 <span data-i18n="image_inlining_hint_3">menu to attach an image file to the chat.</span>
20092009 </div>
20102010 <div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom,xai,pollinations,cohere">
20112011 <div class="flex-container oneline-dropdown">
20122012 <label for="openai_inline_image_quality" data-i18n="Inline Image Quality">
20132013 Inline Image Quality
@@ -3532,6 +3532,7 @@
35323532 <option value="command-r-plus-08-2024">command-r-plus-08-2024</option>
35333533 <option value="command-r7b-12-2024">command-r7b-12-2024</option>
35343534 <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>
35353536 </optgroup>
35363537 <optgroup label="Nightly">
35373538 <option value="command-light-nightly">command-light-nightly</option>
public/scripts/extensions/caption/settings.html+1 -0
@@ -42,6 +42,7 @@
4242 <select id="caption_multimodal_model" class="flex1 text_pole">
4343 <option data-type="cohere" value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option>
4444 <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>
4546 <option data-type="mistral" value="pixtral-12b-latest">pixtral-12b-latest</option>
4647 <option data-type="mistral" value="pixtral-12b-2409">pixtral-12b-2409</option>
4748 <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() {
46964696 else if (['command-light-nightly', 'command-light', 'command'].includes(oai_settings.cohere_model)) {
46974697 $('#openai_max_context').attr('max', max_4k);
46984698 }
46994699 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)) {
47004700 $('#openai_max_context').attr('max', max_128k);
47014701 }
47024702 else if (['command-a-03-2025'].includes(oai_settings.cohere_model)) {
@@ -5267,6 +5267,7 @@ export function isImageInliningSupported() {
52675267 'claude-sonnet-4',
52685268 // Cohere
52695269 'c4ai-aya-vision',
5270+ 'command-a-vision',
52705271 // Google AI Studio
52715272 'gemini-1.5',
52725273 'gemini-2.0',