Skip to content

feat(models): register 7 new provider models#264

Merged
Kamilbenkirane merged 4 commits intomainfrom
feat/add-new-models
Apr 22, 2026
Merged

feat(models): register 7 new provider models#264
Kamilbenkirane merged 4 commits intomainfrom
feat/add-new-models

Conversation

@Kamilbenkirane
Copy link
Copy Markdown
Member

Summary

Adds 7 new models to the modality registries:

Modality Provider Model ID
Images OpenAI gpt-image-2
Text Mistral mistral-medium-3-5
Text Cohere command-a-translate-08-2025
Text Cohere command-r-plus-08-2024
Text Anthropic claude-opus-4-7
Audio (TTS) Google gemini-3.1-flash-tts-preview
Videos Google veo-3.1-lite-generate-preview

All additions are pure data — appending to existing MODELS lists. No new files, no aggregator edits, no provider runtime changes.

Not included:

  • cohere-transcribe-03-2026 — requires mainline Operation.TRANSCRIBE, currently only present in the stt-support worktree. Will land alongside that merge.
  • command-a-03-2025 — already registered.

Test plan

  • make ci — 594 passed, 82.30% coverage, all lint/type/security checks green
  • Registry spot-check for each new model via get_model(id, provider) returns the expected entry

Kamilbenkirane and others added 2 commits April 22, 2026 11:35
Add gpt-image-2 (OpenAI), mistral-medium-3-5 (Mistral),
command-a-translate-08-2025 and command-r-plus-08-2024 (Cohere),
claude-opus-4-7 (Anthropic), gemini-3.1-flash-tts-preview (Google TTS),
and veo-3.1-lite-generate-preview (Google Veo).
@claude
Copy link
Copy Markdown

claude Bot commented Apr 22, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Extend ImageParameter enum with BACKGROUND, MODERATION, OUTPUT_COMPRESSION.
Add NumImagesMapper base + wire 5 new modality-layer wrappers (num_images,
output_format, background, moderation, output_compression) for OpenAI images.
Register constraints on gpt-image-1, gpt-image-1-mini, gpt-image-1.5, gpt-image-2
— transparent background limited to the gpt-image-1 generation per OpenAI docs.
…E consolidation

- claude-opus-4-7: swap THINKING_BUDGET (Range) for THINKING_LEVEL (Choice)
  to route to Anthropic's adaptive-thinking effort preset instead of the
  extended-thinking budget_tokens shape the model rejects. Add a new
  ThinkingLevelMapper base class that emits {type: "adaptive", effort: ...}
  and a modality wrapper in the Anthropic provider registry.

- veo-3.1-lite-generate-preview: add REFERENCE_IMAGES constraint (max 3,
  JPEG/PNG/WebP) to match the -generate-preview sibling.

- OpenAI images: use existing ImageParameter.SAFETY_TOLERANCE instead of
  introducing a duplicate MODERATION enum value (BFL already uses it with
  an integer range; widen its TypedDict type to int | str so the OpenAI
  'auto'/'low' string tier fits). Rename the modality wrapper to
  SafetyToleranceMapper.

- gpt-image-1.5: restore transparent background option; docs confirm only
  gpt-image-2 dropped transparent.
@Kamilbenkirane Kamilbenkirane merged commit b02a088 into main Apr 22, 2026
11 checks passed
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.

1 participant