fix(cli): add nano-gpt to router models mapping#4981
Merged
marius-kilocode merged 3 commits intomainfrom Jan 13, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 80caa71 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis PR adds proper router model support for the
The implementation follows the existing patterns for other router-based providers (openrouter, ollama, litellm, etc.) and the test coverage is thorough. Files Reviewed (4 files)
|
iscekic
approved these changes
Jan 13, 2026
This was referenced Jan 13, 2026
Merged
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
Fixes #4689 - CLI
/model listreturns "No models available for this provider" for nano-gpt provider.Problem
When using the Kilo Code CLI TUI with the nano-gpt provider, the command
/model listincorrectly reports "No models available for this provider" even though the VS Code extension successfully sends the provider's model list (502 models).Root Cause
The nano-gpt provider was missing from the router models mapping:
PROVIDER_TO_ROUTER_NAME["nano-gpt"]wasnullinstead of"nano-gpt"needsRouterModelslist inensureRouterModels()getModelIdKey()was missing a case for nano-gptChanges
cli/src/constants/providers/models.ts"nano-gpt"to theRouterNametype union"nano-gpt": nullto"nano-gpt": "nano-gpt"inPROVIDER_TO_ROUTER_NAMEcase "nano-gpt": return "nanoGptModelId"togetModelIdKey()functioncli/src/commands/model.ts"nano-gpt"to theneedsRouterModelsarray inensureRouterModels()functioncli/src/constants/providers/__tests__/models.test.tsPROVIDER_TO_ROUTER_NAME["nano-gpt"]mappingproviderSupportsModelList("nano-gpt")returning truegetRouterNameForProvider("nano-gpt")returning "nano-gpt"getModelFieldForProvider("nano-gpt")returning "nanoGptModelId"Testing
All 1613 tests pass.
Note
There is a deeper architectural issue where
commandContext.routerModelscaptures a snapshot at render time instead of reactively reading the latest atom value. This will be addressed in a seperate change.