Skip to content

feat: Add toggle mechanism to enable/disable models from loading on demand#9304

Merged
mudler merged 4 commits intomudler:masterfrom
neurocis:feature/model-toggle-9303
Apr 10, 2026
Merged

feat: Add toggle mechanism to enable/disable models from loading on demand#9304
mudler merged 4 commits intomudler:masterfrom
neurocis:feature/model-toggle-9303

Conversation

@neurocis
Copy link
Copy Markdown
Contributor

@neurocis neurocis commented Apr 9, 2026

Implements #9303 - Adds a toggle mechanism to disable models from being auto-loaded while keeping them in the collection.\n\n## Changes\n\n### Backend\n- Added Disabled field to ModelConfig struct with IsDisabled() getter\n- New ToggleModelEndpoint handler (PUT /models/toggle/:name/:action)\n- Request middleware returns HTTP 403 when disabled model is requested\n- Capabilities endpoint exposes disabled status\n\n### Frontend\n- Toggle switch in System > Models table Actions column\n- Visual indicators: dimmed row, red Disabled badge, muted icons\n- Hover tooltip describes toggle function\n\n## Backward Compatibility\n- Disabled field is optional - existing configs default to enabled\n- No breaking changes to existing API endpoints

neurocis added 2 commits April 9, 2026 22:21
…emand

Implements mudler#9303 - Adds ability to disable models from being auto-loaded
while keeping them in the collection.

Backend changes:
- Add Disabled field to ModelConfig struct with IsDisabled() getter
- New ToggleModelEndpoint handler (PUT /models/toggle/:name/:action)
- Request middleware returns 403 when disabled model is requested
- Capabilities endpoint exposes disabled status

Frontend changes:
- Toggle switch in System > Models table Actions column
- Visual indicators: dimmed row, red Disabled badge, muted icons
- Tooltip describes toggle function on hover
- Loading state while API call is in progress
@neurocis neurocis marked this pull request as ready for review April 10, 2026 01:52
@mudler mudler merged commit 062e0d0 into mudler:master Apr 10, 2026
1 check failed
@mudler mudler added the enhancement New feature or request label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants