Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Dec 5, 2025

  • This PR wires with_remote_overrides and make the construct_model_families an async function
  • Moves getting model family a level above to keep the function sync
  • Updates the tests to local, offline, and sync helper for model families

@aibrahim-oai aibrahim-oai changed the base branch from main to call-models-endpoint December 5, 2025 02:00
Base automatically changed from call-models-endpoint to main December 5, 2025 02:28
@aibrahim-oai aibrahim-oai changed the title Wire families Wire with_remote_overrides to construct model families Dec 5, 2025
@aibrahim-oai
Copy link
Collaborator Author

@codex review this

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Swish!

ℹ️ 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".

let config = session_configuration.original_config_do_not_use.clone();
let mut per_turn_config = (*config).clone();
per_turn_config.model = session_configuration.model.clone();
per_turn_config.model_reasoning_effort = session_configuration.model_reasoning_effort;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not super stoked we are keeping these. Is it possible to apply overrides to model but don't expose it on config an let everyone read random values?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Non blocking, just ranting.

assert_eq!(expected, got);
}

fn construct_model_family_offline(model: &str, config: &Config) -> ModelFamily {
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't love how many helpers we have, I'd prefer if only methods on model_manager were public and we didn't expose find_family_for_model

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's test only, I see.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe remove this copy

session_source: SessionSource::Exec,
};
let per_turn_config = Session::build_per_turn_config(&session_configuration);
let model_family = construct_model_family_offline(&per_turn_config.model, &per_turn_config);
Copy link
Collaborator

Choose a reason for hiding this comment

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

we have models manager, can we toss a cfg(test)-only helper onto it?

Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

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

Main feedback - model family on chat.handle_codex_event. Can it be on the instance?

@aibrahim-oai aibrahim-oai merged commit d08efb1 into main Dec 5, 2025
26 checks passed
@aibrahim-oai aibrahim-oai deleted the wire-families branch December 5, 2025 18:40
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants