-
Notifications
You must be signed in to change notification settings - Fork 6.8k
remove model_family from `config
#7571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| pub model_reasoning_summary: ReasoningSummary, | ||
|
|
||
| /// Optional override to force-enable reasoning summaries for the configured model. | ||
| pub model_supports_reasoning_summaries: Option<bool>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add these now? Was there a way to override these before that you are removing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no there wasn't. my guess is there was at some point before introducing model family but it was a chaos so we weren't respecting them anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry. yes it was updating model family in load_from_base_config_with_overrides which I thought it's only for tests per it's doc string but it's used to construct config
codex/codex-rs/core/src/config/mod.rs
Line 307 in cee37a3
| Self::load_from_base_config_with_overrides(cfg, overrides, codex_home) |
codex-rs/tui/src/history_cell.rs
Outdated
| let cell = new_reasoning_summary_block( | ||
| "**High level reasoning without closing".to_string(), | ||
| &config, | ||
| &models_manager, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to be passing this in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just pass model_family.reasoning_summary_format but I am not sure what is best here actually.
codex-rs/core/src/client.rs
Outdated
| pub struct ModelClient { | ||
| config: Arc<Config>, | ||
| auth_manager: Option<Arc<AuthManager>>, | ||
| models_manager: Arc<ModelsManager>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems wrong, why are we not passing model family here? Client lifetime is equal to turn lifetime as the model doesn't change.
| parent_otel.with_model(config.model.as_str(), config.model_family.slug.as_str()); | ||
| let child_otel = parent_otel.with_model( | ||
| config.model.as_str(), | ||
| models_manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like how many places we are calling construct_model_family in. Ideally we'd be passing model_family around.
pakrym-oai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we pass model_manager around less and model_family more?
model_familyfromconfigmodel_familylike supporting reasoning