Skip to content

feat(model-settings): add image generation model category and configuration - #3422

Open
skyfireitdiy wants to merge 2 commits into
GCWing:mainfrom
skyfireitdiy:fix/issue-3279
Open

skyfireitdiy wants to merge 2 commits into
GCWing:mainfrom
skyfireitdiy:fix/issue-3279

Conversation

@skyfireitdiy

Copy link
Copy Markdown

Summary

Adds image_generation as a supported model category and capability across the model settings UI, default model configuration, and category inference. This lets users assign a default image generation model and filter models by this capability.

Changes

  • modelCategory.ts: infer image_generation from model names (dall-e, flux, sdxl, stable-diffusion, midjourney, imagen, etc.); map the category to the image_generation capability; resolve it in resolveModelCategory.
  • types/index.ts: add image_generation to ModelCategory union and DefaultModelsConfig.image_generation field.
  • DefaultModelConfig.tsx: add an "Image Generation" default model slot (mirrors the existing speech recognition slot).
  • ModelSettingsPage.tsx: add image_generation to the model category picker, default-model summary, and capability filter.
  • modelCategory.test.ts: add coverage for image_generation category → capability mapping and selection.

Verification

  • modelCategory.ts logic verified via node (18 assertions pass, including image_generation mapping).
  • Syntax-checked all 5 changed files with tsc.

Closes #3279

…ration

Add image_generation as a supported model category and capability across model settings, default model config, and category inference. This allows users to assign default image generation models and filter models by this capability.

Co-Authored-By: Jarvis-AI-42 <skyfireitdiy@gmail.com>
@GCWing
GCWing requested a review from wgqqqqq October 16, 2026 03:46
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.

[Feature]: 模型服务表单缺少「图像生成」分类入口 —— 后端已支持 default_models.image_generation

2 participants