This commit is contained in:
Ahmed Ibrahim
2025-08-18 12:45:54 -07:00
parent 4b76e81caa
commit 4305db2d76
2 changed files with 6 additions and 1 deletions

View File

@@ -332,6 +332,10 @@ impl ModelClient {
pub fn get_reasoning_summary(&self) -> ReasoningSummaryConfig {
self.summary
}
pub fn get_auth(&self) -> Option<CodexAuth> {
self.auth.clone()
}
}
#[derive(Debug, Deserialize, Serialize)]

View File

@@ -1022,6 +1022,7 @@ async fn submission_loop(
let effective_effort = effort.unwrap_or(prev.client.get_reasoning_effort());
let effective_summary = summary.unwrap_or(prev.client.get_reasoning_summary());
let auth = prev.client.get_auth();
// Build updated config for the client
let mut updated_config = (*config).clone();
updated_config.model = effective_model.clone();
@@ -1029,7 +1030,7 @@ async fn submission_loop(
let client = ModelClient::new(
Arc::new(updated_config),
None,
auth,
provider,
effective_effort,
effective_summary,