Skip to content

feat(provider): fill models by hand or from gateway /models - #83

Merged
cursor[bot] merged 2 commits into
devfrom
cursor/provider-fetch-models-dd00
Aug 27, 2026
Merged

cursor[bot] merged 2 commits into
devfrom
cursor/provider-fetch-models-dd00

Conversation

@xjoker

@xjoker xjoker commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Codex /model was filling with every id a small gateway listed, including embeddings and models that 404 on POST /responses (for example composer-2.5 on a LAN proxy).

/model now lists only models saved on the provider. Fill that list by hand (--model / TUI typing) or import chat slugs from GET {base_url}/models:

  • provider add … --fetch-models (optionally together with --model)
  • provider fetch-models <alias>
  • TUI form f

Embedding and reranker ids are omitted. Catalogs larger than 48 models (OpenRouter-sized) must be picked with --model. A slug on /models is still not a guarantee that Responses accepts it.

Test plan

  • cargo clippy --all-targets -- -D warnings
  • cargo test --lib provider::tests
  • cargo test --lib provider_add_allows_fetch_models
  • cargo test --lib provider_fetch_models_subcommand
  • cargo test --lib fetch_fills_chat_slugs
  • cargo test --lib fetch_without_a_url
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 27, 2026 07:33
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]>
@xjoker
xjoker marked this pull request as ready for review August 27, 2026 07:35
@cursor
cursor Bot merged commit 807e0cf into dev Aug 27, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/provider-fetch-models-dd00 branch September 9, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants