override instructions using ModelInfo (#7754)

Making sure we can override base instructions
This commit is contained in:
Ahmed Ibrahim
2025-12-08 17:30:42 -08:00
committed by GitHub
Unverified
parent 0f2b589d5e
commit cacfd003ac
5 changed files with 107 additions and 0 deletions
@@ -102,6 +102,7 @@ impl ModelFamily {
if model.slug == self.slug {
self.default_reasoning_effort = Some(model.default_reasoning_level);
self.shell_type = model.shell_type;
self.base_instructions = model.base_instructions.unwrap_or(self.base_instructions);
}
}
self
@@ -357,6 +358,7 @@ mod tests {
supported_in_api: true,
priority: 1,
upgrade: None,
base_instructions: None,
}
}
@@ -216,6 +216,7 @@ mod tests {
"supported_in_api": true,
"priority": priority,
"upgrade": null,
"base_instructions": null,
}))
.expect("valid model")
}