Skip to content

Commit 119ed46

Browse files
Andrew Tanandrewtlw
authored andcommitted
modifying starts_with to contains string matching to address cases where gpt-oss model names from different providers have a prefix like openai/gpt-oss/120b
1 parent 4e9ad23 commit 119ed46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-rs/core/src/model_family.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub fn find_family_for_model(slug: &str) -> Option<ModelFamily> {
9696
slug, "gpt-4.1",
9797
needs_special_apply_patch_instructions: true,
9898
)
99-
} else if slug.starts_with("gpt-oss") {
99+
} else if slug.contains("gpt-oss") {
100100
model_family!(slug, "gpt-oss", apply_patch_tool_type: Some(ApplyPatchToolType::Function))
101101
} else if slug.starts_with("gpt-4o") {
102102
simple_model_family!(slug, "gpt-4o")

0 commit comments

Comments
 (0)