From cf84520f45a337b9202303c3aad4c373f166eccd Mon Sep 17 00:00:00 2001 From: gaurav0107 Date: Thu, 7 May 2026 01:12:12 +0530 Subject: [PATCH] feat: add Cohere Aya multilingual models to ChatCohere Adds the currently-Live Cohere Aya models to the ChatCohere selector, addressing issue #3112. Aya models are optimized for multilingual use across 23 languages and complement the existing Command R family. ## Changes - `packages/components/models.json` - append two entries to `chat[].chatCohere.models[]`: - `c4ai-aya-expanse-32b` - 32B text model, 128k context, 23 languages - `c4ai-aya-vision-32b` - 32B multimodal (text + image), 23 languages Pricing matches Cohere's published $0.50/1M input and $1.50/1M output for Aya models, normalized to the repo's $/1K-token convention used by `packages/server/src/services/evaluations/CostCalculator.ts`. ## Notes - The ChatCohere node reads its model list dynamically via `loadMethod: 'listModels'` -> `getModels(MODEL_TYPE.CHAT, 'chatCohere')`, so no code change in `ChatCohere.ts` is required. - The originally-requested `c4ai-aya-expanse-8b` and `c4ai-aya-vision-8b` variants were retired by Cohere on Apr 4, 2026 per their model catalog (docs.cohere.com/v2/docs/models) and are therefore intentionally not added - selecting a retired model ID in the UI would surface a broken endpoint to users. The Live 32B variants cover the multilingual use case requested in the issue. --- packages/components/models.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/components/models.json b/packages/components/models.json index fa65dc763c7..24ae597e9af 100644 --- a/packages/components/models.json +++ b/packages/components/models.json @@ -1708,6 +1708,20 @@ "description": "Command R+ – complex RAG, multi-step tool use", "input_cost": 0.0025, "output_cost": 0.01 + }, + { + "label": "c4ai-aya-expanse-32b", + "name": "c4ai-aya-expanse-32b", + "description": "Aya Expanse 32B – multilingual across 23 languages, 128k context", + "input_cost": 0.0005, + "output_cost": 0.0015 + }, + { + "label": "c4ai-aya-vision-32b", + "name": "c4ai-aya-vision-32b", + "description": "Aya Vision 32B – multimodal (text + image), multilingual across 23 languages", + "input_cost": 0.0005, + "output_cost": 0.0015 } ] },