Skip to content

Deduplicate UI model code - #1577

Merged
dxqb merged 1 commit into
Nerogar:mergefrom
dxqb:centralize-model-type
Jul 4, 2026
Merged

Deduplicate UI model code#1577
dxqb merged 1 commit into
Nerogar:mergefrom
dxqb:centralize-model-type

Conversation

@dxqb

@dxqb dxqb commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • pre-commit run --all-files passes
  • Launched the affected UI or script and exercised the change

AI assistance

  • AI-assisted — I have read every line in this diff and can defend each change

Add a ModelType.supported_training_methods() that enumerates every
model type explicitly, raising on an unknown type rather than
defaulting. Collapse ModelTab's per-type __setup_*_ui methods into one
build_content that derives the has_* widget flags from
ModelType.model_parts(), and collapse TopBar's per-type training-method
dispatch to build its dropdown from supported_training_methods().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dxqb
dxqb merged commit 6e5ad7a into Nerogar:merge Jul 4, 2026
1 check passed
@dxqb
dxqb deleted the centralize-model-type branch July 4, 2026 08:25
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