chore: warning metric (#9487)

This commit is contained in:
jif-oai
2026-01-19 18:07:04 +01:00
committed by GitHub
parent 31415ebfcf
commit 92cf2a1c3a

View File

@@ -1390,6 +1390,9 @@ impl Session {
}
pub(crate) async fn record_model_warning(&self, message: impl Into<String>, ctx: &TurnContext) {
self.services
.otel_manager
.counter("codex.model_warning", 1, &[]);
let item = ResponseItem::Message {
id: None,
role: "user".to_string(),