mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
override instructions using ModelInfo (#7754)
Making sure we can override base instructions
This commit is contained in:
committed by
GitHub
Unverified
parent
0f2b589d5e
commit
cacfd003ac
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user