mirror of
https://github.com/openai/codex.git
synced 2026-05-01 18:06:47 +00:00
chore(config) Rename config setting to personality (#10314)
## Summary Let's make the setting name consistent with the SlashCommand! ## Testing - [x] Updated tests
This commit is contained in:
@@ -278,7 +278,7 @@ impl ConfigDocument {
|
||||
mutated
|
||||
}),
|
||||
ConfigEdit::SetModelPersonality { personality } => Ok(self.write_profile_value(
|
||||
&["model_personality"],
|
||||
&["personality"],
|
||||
personality.map(|personality| value(personality.to_string())),
|
||||
)),
|
||||
ConfigEdit::SetNoticeHideFullAccessWarning(acknowledged) => Ok(self.write_value(
|
||||
@@ -724,7 +724,7 @@ impl ConfigEditsBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_model_personality(mut self, personality: Option<Personality>) -> Self {
|
||||
pub fn set_personality(mut self, personality: Option<Personality>) -> Self {
|
||||
self.edits
|
||||
.push(ConfigEdit::SetModelPersonality { personality });
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user