Repository navigation
Add get_model_catalog to Rust SDK - #852
Merged
AnthonyRonning merged 1 commit intoAug 26, 2026
Merged
AnthonyRonning merged 1 commit into
AnthonyRonning merged 1 commit into
Conversation
Contributor
|
Could you rebase? I think this was after some of our SDK work but just need to double check. I’m now running CICD tests against an opensecret server that gets pulled in, so you may add integration tests there for good measure if you haven’t already. |
Contributor
|
Looks good overall. Before merging:
|
benthecarman
force-pushed
the
codex-rust-sdk-model-catalog
branch
from
August 26, 2026 20:57
427b694 to
8db806d
Compare
Expose GET /v1/models/catalog through OpenSecretClient. The TypeScript SDK already fetches this endpoint (fetchModelCatalog); the Rust SDK only allowed it through the inference proxy. The catalog carries each model's context window and capabilities, which clients need to size context usage against the selected model instead of a hardcoded fallback.
benthecarman
force-pushed
the
codex-rust-sdk-model-catalog
branch
from
August 26, 2026 21:04
877e5fb to
eb3137d
Compare
Contributor
Author
done |
AnthonyRonning
approved these changes
Aug 26, 2026
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
GET /v1/models/catalogthroughOpenSecretClientasget_model_catalog(), returning the newModelCatalogResponse(datawithcontext_window/max_context_tokens/capabilities,aliaseswithtarget_model,defaults).fetchModelCatalog); the Rust SDK only allowed it through the inference proxy allow-list, so native consumers had no way to size context usage against the selected model.test_get_model_catalogmirroringtest_get_models.Test plan
cargo test --lib(82 passed)enclave.trymaple.ai: catalog returns 7 models with context windows, 2 aliases (auto:quick->deepseek-v4-flash,auto:powerful->kimi-k2-6), and defaults.