Repository navigation
feat(provider): fill models by hand or from gateway /models - #83
Merged
Merged
Conversation
Codex /model now lists only saved slugs. Import chat ids with --fetch-models, provider fetch-models, or TUI f. Embedding and reranker slugs are omitted; catalogs larger than 48 must be typed. Co-authored-by: lolitaupdate <[email protected]>
Add starts editing the alias, so f must be pressed after Esc. Co-authored-by: lolitaupdate <[email protected]>
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
Codex
/modelwas filling with every id a small gateway listed, including embeddings and models that 404 onPOST /responses(for examplecomposer-2.5on a LAN proxy)./modelnow lists only models saved on the provider. Fill that list by hand (--model/ TUI typing) or import chat slugs fromGET {base_url}/models:provider add … --fetch-models(optionally together with--model)provider fetch-models <alias>fEmbedding and reranker ids are omitted. Catalogs larger than 48 models (OpenRouter-sized) must be picked with
--model. A slug on/modelsis still not a guarantee that Responses accepts it.Test plan
cargo clippy --all-targets -- -D warningscargo test --lib provider::testscargo test --lib provider_add_allows_fetch_modelscargo test --lib provider_fetch_models_subcommandcargo test --lib fetch_fills_chat_slugscargo test --lib fetch_without_a_url