Skip to content

feat: add Cohere Aya multilingual models to ChatCohere#6355

Open
gaurav0107 wants to merge 1 commit intoFlowiseAI:mainfrom
gaurav0107:feature/3112-cohere-aya-models
Open

feat: add Cohere Aya multilingual models to ChatCohere#6355
gaurav0107 wants to merge 1 commit intoFlowiseAI:mainfrom
gaurav0107:feature/3112-cohere-aya-models

Conversation

@gaurav0107
Copy link
Copy Markdown

Closes #3112.

Adds the currently-Live Cohere Aya models to the ChatCohere selector. The Aya family is optimized for multilingual use across 23 languages and complements the existing Command R family already exposed by the node.

Changes

  • packages/components/models.json — append two entries to chat[].chatCohere.models[]:
    • c4ai-aya-expanse-32b — Aya Expanse 32B text model, 128k context, 23 languages
    • c4ai-aya-vision-32b — Aya Vision 32B multimodal (text + image), 23 languages

Pricing is based on Cohere's published $0.50/1M input and $1.50/1M output for Aya models (https://cohere.com/pricing), normalized to the repo's $/1K-token convention consumed by packages/server/src/services/evaluations/CostCalculator.ts (input_cost: 0.0005, output_cost: 0.0015).

Why only the 32B variants

The ChatCohere node reads its model list dynamically via loadMethod: 'listModels'getModels(MODEL_TYPE.CHAT, 'chatCohere') (defined in modelLoader.ts), so no code change in ChatCohere.ts is needed.

The original issue mentioned "Aya 8B and 35B", but Cohere's actual offerings are 8B and 32B. Per Cohere's model catalog (https://docs.cohere.com/v2/docs/models):

Model Status
c4ai-aya-expanse-32b Live
c4ai-aya-vision-32b Live
c4ai-aya-expanse-8b Retired Apr 4, 2026
c4ai-aya-vision-8b Retired Apr 4, 2026

The 8B variants were intentionally omitted — selecting a retired model ID in the UI would surface a broken endpoint to users. The Live 32B variants cover the multilingual use case described in the issue.

Verification

  • jq empty packages/components/models.json → valid JSON
  • prettier --check packages/components/models.json (pinned 2.8.8) → passes
  • eslint packages/components/models.json → no errors
  • Diff is 14 lines; no other files touched; ChatCohere.ts unchanged (reads models.json dynamically)

Related

Adds the currently-Live Cohere Aya models to the ChatCohere selector,
addressing issue FlowiseAI#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.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the c4ai-aya-expanse-32b and c4ai-aya-vision-32b models to the model configuration. Feedback indicates that while the vision model is added, the ChatCohere node implementation currently lacks the necessary flags and logic to support multimodal inputs, which could result in a misleading user experience.

Comment on lines +1719 to 1725
{
"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
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While adding the c4ai-aya-vision-32b model to the list is correct for the provider, the current implementation of the ChatCohere node (as seen in ChatCohere.ts) does not yet support multimodal inputs. Specifically, it lacks the allowImageUpload: true flag and the necessary logic in the init method to process image attachments. Including this model with a "multimodal" description in the UI might be misleading to users as they won't see the image upload option. It is recommended to update the ChatCohere node to support vision capabilities in a follow-up change or alongside this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cohere Multilingual AYA models integration

1 participant