feat: add optional update_to model mapping when disabling a model - #1123
Open
aadirajput-dev26 wants to merge 1 commit into
Conversation
Contributor
|
PR review rate limit exceeded |
Collaborator
|
Your card was not found on the dbdash with the branch feature/gtwy-523-specific-model-update-on-disabling |
harshhsahu
requested changes
Jun 19, 2026
| usageInfo = await ConfigurationServices.findIdsByModelAndService(model_name, service, null); | ||
|
|
||
| const defaultModel = new_agent_service[service]?.model; | ||
| const defaultModel = update_to ? update_to : new_agent_service[service]?.model; |
harshhsahu
force-pushed
the
testing
branch
2 times, most recently
from
June 30, 2026 11:30
3f6ca9d to
593f1f4
Compare
aadirajput-dev26
force-pushed
the
feature/gtwy-523-specific-model-update-on-disabling
branch
from
July 4, 2026 05:27
fc21e52 to
03df8b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added support for specifying a fallback model while disabling an existing model through the model status admin API.
Changes
Added an optional update_to field to the model status API.
update_to is only accepted when status = 0 (model disable).
When disabling a model, admins can specify which model should be used as its replacement.
update_to is forbidden when status = 1 (model enable).
Added request validation to enforce the above behavior.