Skip to content

Commit

Permalink
Rename max output tokens as per api docs (64bit#289)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Raethke <[email protected]>
  • Loading branch information
codesoda and codesoda authored Nov 18, 2024
1 parent 9274131 commit bd7a87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async-openai/src/types/realtime/session_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub enum TurnDetection {

#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(untagged)]
pub enum MaxOutputTokens {
pub enum MaxResponseOutputTokens {
Num(u16),
#[serde(rename = "inf")]
Inf,
Expand Down Expand Up @@ -132,5 +132,5 @@ pub struct SessionResource {
/// Provide an integer between 1 and 4096 to limit output tokens, or "inf" for the maximum available tokens for a given model.
/// Defaults to "inf".
#[serde(skip_serializing_if = "Option::is_none")]
pub max_output_tokens: Option<MaxOutputTokens>,
pub max_response_output_tokens: Option<MaxResponseOutputTokens>,
}

0 comments on commit bd7a87e

Please sign in to comment.