Skip to content

Extract model metadata into codex-models#15026

Closed
aibrahim-oai wants to merge 4 commits intocodex/split-core-config-loaderfrom
codex/split-core-models
Closed

Extract model metadata into codex-models#15026
aibrahim-oai wants to merge 4 commits intocodex/split-core-config-loaderfrom
codex/split-core-models

Conversation

@aibrahim-oai
Copy link
Collaborator

Summary

  • extract model provider metadata, response debug helpers, and model preset support into a new codex-models crate
  • leave codex-core as a thin facade over the moved model metadata modules
  • update core callsites to use codex-models directly for the extracted types and helpers

Testing

  • cargo clean
  • CARGO_TARGET_DIR=/tmp/codex-target-models cargo test -p codex-models (cold build reached workspace crates and updated Cargo.lock; full local pass still pending, CI will validate the branch)

@aibrahim-oai
Copy link
Collaborator Author

@codex review this

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e02add131a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +544 to +547
let api_provider = self.state.provider.to_api_provider(matches!(
auth.as_ref().map(CodexAuth::auth_mode),
Some(crate::auth::AuthMode::Chatgpt)
))?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Remove ? from to_api_provider call sites

ModelProviderInfo::to_api_provider was refactored to return Provider directly, but this call still applies ?. That no longer compiles because Provider does not implement Try. The same regression also appears in core/src/models_manager/manager.rs and core/src/realtime_conversation.rs, causing cargo check -p codex-core to fail.

Useful? React with 👍 / 👎.

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.

1 participant