Skip to content

feat: add recent AI models (GPT Image 2, Claude Opus 4.7, Qwen3.6, DeepSeek V4 Pro[1M], Kimi K2.6, Grok 4.20, MiMo V2.5)#592

Closed
wahajahmed010 wants to merge 1 commit into
THU-MAIC:mainfrom
wahajahmed010:fix/480-refresh-models-preserve-server-ids
Closed

feat: add recent AI models (GPT Image 2, Claude Opus 4.7, Qwen3.6, DeepSeek V4 Pro[1M], Kimi K2.6, Grok 4.20, MiMo V2.5)#592
wahajahmed010 wants to merge 1 commit into
THU-MAIC:mainfrom
wahajahmed010:fix/480-refresh-models-preserve-server-ids

Conversation

@wahajahmed010
Copy link
Copy Markdown

Summary

Refreshes the built-in provider/model registry with recent AI model releases and clarifies server-config extensibility.

Changes

New models added:

  • OpenAI: gpt-5.4-pro, gpt-image-2, gpt-image-2-2026-04-21, gpt-image-1.5, gpt-image-1, gpt-image-1-mini, chatgpt-image-latest
  • Anthropic: claude-opus-4-7
  • Qwen: qwen3.6-max-preview, qwen3.6-plus, qwen3.6-plus-2026-04-02, qwen3.6-flash, qwen3.6-flash-2026-04-16, qwen3.6-35b-a3b
  • Qwen Image: qwen-image-2.0-pro, qwen-image-2.0-pro-2026-03-03, qwen-image-2.0, qwen-image-2.0-2026-03-03
  • DeepSeek: deepseek-v4-pro[1m] (1M context variant)
  • Kimi: kimi-k2.6
  • xAI/Grok: grok-4.20-reasoning, grok-4.20, grok-4.20-multi-agent
  • Xiaomi MiMo: mimo-v2.5-pro, mimo-v2.5

Documentation:

  • Updated .env.example with example model lists for each provider
  • Clarified that HY3 is a model name (Tencent Hunyuan), not a provider prefix

Server-config extensibility:

The existing implementation in lib/store/settings.ts already preserves unknown server-provided model IDs from *_MODELS environment variables or YAML config as synthetic { id, name } entries. This means:

  • When a server configures QWEN_MODELS=qwen3.7-new-model, it will appear in the UI even if not in the built-in registry
  • Newly released models can be used immediately via server config before the app registry is updated
  • Aggregator-specific IDs (e.g., OpenRouter routing IDs) stay out of default direct-provider lists unless they are official direct API IDs

Testing

  • All model IDs match the official API documentation links provided in the issue
  • No breaking changes to existing functionality
  • Server-configured models continue to work via the existing info.models.map(id => currentModelMap.get(id) ?? { id, name: id }) pattern

Related

Checklist

  • Model IDs verified against official documentation
  • .env.example updated with example model lists
  • No breaking changes
  • Server-config extensibility already implemented (no code changes needed)

…epSeek V4 Pro[1M], Kimi K2.6, Grok 4.20, MiMo V2.5)

- OpenAI: gpt-5.4-pro, gpt-image-2 variants, chatgpt-image-latest
- Anthropic: claude-opus-4-7
- Qwen: qwen3.6-max-preview, qwen3.6-plus variants, qwen3.6-flash variants, qwen3.6-35b-a3b
- Qwen Image: qwen-image-2.0-pro variants, qwen-image-2.0 variants
- DeepSeek: deepseek-v4-pro[1m] (1M context variant)
- Kimi: kimi-k2.6
- xAI/Grok: grok-4.20-reasoning, grok-4.20, grok-4.20-multi-agent
- Xiaomi MiMo: mimo-v2.5-pro, mimo-v2.5
- Tencent Hunyuan: hy3-preview (already present, clarified in docs)

Server-configured *_MODELS already preserves unknown model IDs via synthetic
{ id, name } entries in lib/store/settings.ts, so no code changes needed there.

See THU-MAIC#480
@wahajahmed010 wahajahmed010 force-pushed the fix/480-refresh-models-preserve-server-ids branch from 83dc49f to 2503dd6 Compare May 24, 2026 00:15
@wyuc
Copy link
Copy Markdown
Contributor

wyuc commented May 26, 2026

Apologies @wahajahmed010 — the deepseek-v4-pro[1m] line in #480 was a mistake on my part. [1m] is only valid on DeepSeek's Anthropic-compatible endpoint (Claude Code), not the OpenAI-compatible API OpenMAIC uses; the base deepseek-v4-pro already defaults to 1M context. Closing.

@wyuc wyuc closed this May 26, 2026
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.

2 participants