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