Lightweight coding agent that runs in your terminal
Rust
Include apply_patch tool for oss models from gpt-oss providers with different naming convention (e.g. `openai/gpt-oss-*`) (#2811)
Andrew Tande6559f2ab83
diff --git a/codex-rs/core/src/model_family.rs b/codex-rs/core/src/model_family.rsindex 5b4ca39ec0..59fd622f1c 100644--- a/codex-rs/core/src/model_family.rs+++ b/codex-rs/core/src/model_family.rs@@ -103,7 +103,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {slug, "gpt-4.1",needs_special_apply_patch_instructions: true,)- } else if slug.starts_with("gpt-oss") {+ } else if slug.starts_with("gpt-oss") || slug.starts_with("openai/gpt-oss") {model_family!(slug, "gpt-oss", apply_patch_tool_type: Some(ApplyPatchToolType::Function))} else if slug.starts_with("gpt-4o") {simple_model_family!(slug, "gpt-4o")