fix(model-switch): merge configured custom_providers.models#6
Merged
Conversation
…d of replacing (fixes NousResearch#59560) When live /models discovery returns a list from the API, the previous code replaced the configured models_list entirely with the live_models list. This caused custom_providers.models entries to be ignored in the Desktop picker when the endpoint supported /models discovery. Fix: merge the two lists by keeping all configured models and appending only live-discovered models whose slug/id is not already present. This preserves user-configured models while enriching the list with any additional models the live endpoint reports. Fixes NousResearch#59560
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.
Fixes: NousResearch#59560
Pipeline: TRIAGE DONE | IMPLEMENT DONE | VERIFY PASS | REVIEWER APPROVED | SECURITY PASS | OPSEC CLEAR