mirror of
https://github.com/openai/codex.git
synced 2026-05-02 20:32:04 +03: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:
@@ -88,7 +88,7 @@ impl ContextManager {
|
||||
let model_info = turn_context.client.get_model_info();
|
||||
let personality = turn_context
|
||||
.personality
|
||||
.or(turn_context.client.config().model_personality);
|
||||
.or(turn_context.client.config().personality);
|
||||
let base_instructions = model_info.get_model_instructions(personality);
|
||||
let base_tokens = i64::try_from(approx_token_count(&base_instructions)).unwrap_or(i64::MAX);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user