[AIGTWY-4565] Use the MPS model catalog in Codex - #549
Open
andy-xu-db wants to merge 4 commits into
Open
Conversation
andy-xu-db
force-pushed
the
aigtwy-4565-codex-mps-discovery
branch
from
September 10, 2026 15:44
d6af689 to
865aba6
Compare
andy-xu-db
marked this pull request as ready for review
September 10, 2026 20:18
lilly-luo
reviewed
Sep 10, 2026
Comment on lines
+2219
to
+2220
| elif tool == "codex" and provider: | ||
| state["_codex_launch_provider"] = provider |
Collaborator
There was a problem hiding this comment.
why do we need this for codex and not for cc
lilly-luo
reviewed
Sep 10, 2026
Comment on lines
+523
to
+524
| token = get_databricks_token(workspace, state.get("profile")) | ||
| os.environ["OAUTH_TOKEN"] = token |
Collaborator
There was a problem hiding this comment.
is this change necessary?
lilly-luo
reviewed
Sep 10, 2026
| ) | ||
| if workspace and token and provider: | ||
| catalog = fetch_codex_mps_model_catalog(workspace, token, provider) | ||
| write_json_file(CODEX_MPS_MODEL_CATALOG_PATH, catalog) |
Collaborator
There was a problem hiding this comment.
nice i need to use this too
lilly-luo
reviewed
Sep 10, 2026
lilly-luo
left a comment
Collaborator
There was a problem hiding this comment.
can you include a snippet of what the catalog looks like? and also test against bedrock w gpt model?
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
/ai-gateway/codex/v1/modelsbefore launch.model_catalog_json, replacing bundled defaults in/model.Server counterpart: https://github.com/databricks-eng/universe/pull/2586683
Usage
Codex does not use an enable-model-discovery flag:
Testing
/model: exactlyo4-mini,o3, ando1for the explicit test MPS/model: exactly 31 compatible models, with no bundled or unsupported extraso3ando4-mini; both returned the expected E2E response through LiteSwap