Skip to content

Commit

Permalink
Fix service_tier serialization for CreateChatCompletionRequest (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgie authored Sep 2, 2024
1 parent bf78e66 commit 05d5a1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions async-openai/src/types/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServiceTier>,

/// Up to 4 sequences where the API will stop generating further tokens.
Expand Down

0 comments on commit 05d5a1b

Please # to comment.