From 61e59e207d10a6c2c372e23f9b9a0ae15ed0caa0 Mon Sep 17 00:00:00 2001 From: ysimonson Date: Mon, 30 Dec 2024 07:30:44 -0500 Subject: [PATCH] Fix parsing of inf strings --- async-openai/src/types/realtime/session_resource.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/async-openai/src/types/realtime/session_resource.rs b/async-openai/src/types/realtime/session_resource.rs index dc0d1e7..d1bd769 100644 --- a/async-openai/src/types/realtime/session_resource.rs +++ b/async-openai/src/types/realtime/session_resource.rs @@ -37,8 +37,7 @@ pub enum TurnDetection { #[serde(untagged)] pub enum MaxResponseOutputTokens { Num(u16), - #[serde(rename = "inf")] - Inf, + Inf(String), } #[derive(Debug, Serialize, Deserialize, Clone)]