Rename the model (#1942)
This commit is contained in:
@@ -127,15 +127,6 @@ impl ModelClient {
|
|||||||
|
|
||||||
let auth_mode = auth.as_ref().map(|a| a.mode);
|
let auth_mode = auth.as_ref().map(|a| a.mode);
|
||||||
|
|
||||||
if self.config.model_family.family == "2025-08-06-model"
|
|
||||||
&& auth_mode != Some(AuthMode::ChatGPT)
|
|
||||||
{
|
|
||||||
return Err(CodexErr::UnexpectedStatus(
|
|
||||||
StatusCode::BAD_REQUEST,
|
|
||||||
"2025-08-06-model is only supported with ChatGPT auth, run `codex login status` to check your auth status and `codex login` to login with ChatGPT".to_string(),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
let store = prompt.store && auth_mode != Some(AuthMode::ChatGPT);
|
let store = prompt.store && auth_mode != Some(AuthMode::ChatGPT);
|
||||||
|
|
||||||
let full_instructions = prompt.get_full_instructions(&self.config.model_family);
|
let full_instructions = prompt.get_full_instructions(&self.config.model_family);
|
||||||
|
|||||||
@@ -89,9 +89,9 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
|
|||||||
simple_model_family!(slug, "gpt-oss")
|
simple_model_family!(slug, "gpt-oss")
|
||||||
} else if slug.starts_with("gpt-3.5") {
|
} else if slug.starts_with("gpt-3.5") {
|
||||||
simple_model_family!(slug, "gpt-3.5")
|
simple_model_family!(slug, "gpt-3.5")
|
||||||
} else if slug.starts_with("2025-08-06-model") {
|
} else if slug.starts_with("gpt-5") {
|
||||||
model_family!(
|
model_family!(
|
||||||
slug, "2025-08-06-model",
|
slug, "gpt-5",
|
||||||
supports_reasoning_summaries: true,
|
supports_reasoning_summaries: true,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ pub(crate) fn get_model_info(model_family: &ModelFamily) -> Option<ModelInfo> {
|
|||||||
max_output_tokens: 4_096,
|
max_output_tokens: 4_096,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
"2025-08-06-model" => Some(ModelInfo {
|
"gpt-5" => Some(ModelInfo {
|
||||||
context_window: 200_000,
|
context_window: 200_000,
|
||||||
max_output_tokens: 100_000,
|
max_output_tokens: 100_000,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user