Repository navigation
Auto-detect models in /local add - #31
Merged
Merged
Conversation
Fetch {url}/models once url + key are filled and open a searchable
picker. On failure show the reason (HTTP status, could not connect,
timed out, invalid URL) and fall back to typing the id.
Fields reordered to URL, API, API Key, Model ID so detection has what
it needs. Enter on an empty model jumps to the field instead of
erroring the form closed. API Key placeholder now says optional.
auto-detect models in /local add
Owner
|
Thanks for the PR @abdulsaheel
now those arrows left or right should open the model picker again for selection. |
Model ID renders as ◀ id ▶ once the server's model list is detected; Left/Right reopen the picker so a wrong pick can be changed.
# Conflicts: # CHANGELOG.md
Contributor
Author
|
Makes sense @Revantark, made the change in accd8f6 . Once the server's model list is detected, Model ID shows as ◀ model ▶ and Left/Right reopen the picker; Esc keeps the current pick. |
Revantark
approved these changes
Oct 5, 2026
Owner
|
Thanks. |
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.
/local addnow hits{url}/modelswhen you land on Model ID and opens a searchable picker of what the server serves. Works with anything OpenAI-compatible (CLIProxyAPI, Ollama, LM Studio, vLLM, llama.cpp).If detection fails it says why and falls back to typing:
HTTP 401 Unauthorized/HTTP 404 Not Found(e.g. URL missing/v1)could not connect,timed out(10s),invalid URLOther changes:
N found, Enter to pickhint; Enter reopens it. Custom ids still typeable.optional.Tested against a live CLIProxyAPI: picked a model, saved, chatted through it. Unit tests cover parsing, auth header, HTTP errors, unreachable and invalid URLs.
Unrelated, already on main: Shift+Tab doesn't move focus in this form, the global keymap eats it as mode toggle.