Skip to content

probe - #2

Closed
justinware24 wants to merge 1 commit into
mainfrom
feat/codex-model-catalog
Closed

justinware24 wants to merge 1 commit into
mainfrom
feat/codex-model-catalog

Conversation

@justinware24

Copy link
Copy Markdown
Owner

x

Codex falls back to its built-in metadata for a model it has never heard
of. That metadata understates the context window of a model served by
another gateway and makes the CLI warn on every turn, so a run against
such a gateway truncates turns early and complains about a model the
user deliberately configured.

The platform now writes a model catalog next to the CLI's own
configuration and passes it as model_catalog_json. The catalog
describes the models of the user's personal catalog and of the gateway
it points at, plus the model of the current turn. A model the gateway
does not publish a window for gets a conservative one, because Codex's
fallback is smaller still.

A turn without a personal catalog and without a custom Base URL keeps
the CLI's own catalog, which is right for OpenAI's own endpoint. A
catalog that cannot be written does not fail the turn: the CLI still
runs and only loses the real window.
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