diff --git a/async-openai/src/types/chat.rs b/async-openai/src/types/chat.rs index b0545b51..0e964d83 100644 --- a/async-openai/src/types/chat.rs +++ b/async-openai/src/types/chat.rs @@ -537,6 +537,7 @@ pub struct CreateChatCompletionRequest { /// - When not set, the default behavior is 'auto'. /// /// When this parameter is set, the response body will include the `service_tier` utilized. + #[serde(skip_serializing_if = "Option::is_none")] pub service_tier: Option, /// Up to 4 sequences where the API will stop generating further tokens.