mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
chore: warning metric (#9487)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user