mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Log missing personality messages at trace level (#32744)
## What changed Emit the diagnostic for a requested personality without model-specific messages at `trace` instead of `warn`. The existing fallback to `base_instructions` is unchanged. GitOrigin-RevId: f7a00d28b57d4a6513df5d43c9456ae9b16c738b
This commit is contained in:
1 parent
2f7d89b141
commit
2a4942c081
1 file changed
+2
-2
@@ -21,7 +21,7 @@ use serde::de::DeserializeOwned;
|
||||
use serde::de::Error;
|
||||
use strum_macros::Display;
|
||||
use strum_macros::EnumIter;
|
||||
use tracing::warn;
|
||||
use tracing::trace;
|
||||
use ts_rs::TS;
|
||||
|
||||
use crate::config_types::Personality;
|
||||
@@ -480,7 +480,7 @@ impl ModelInfo {
|
||||
} else {
|
||||
match personality {
|
||||
Some(personality @ (Personality::Friendly | Personality::Pragmatic)) => {
|
||||
warn!(
|
||||
trace!(
|
||||
model = %self.slug,
|
||||
%personality,
|
||||
"Model personality requested but model_messages is missing, falling back to base instructions."
|
||||
|
||||
Reference in new issue
Block a user