Skip to content

Commit bd7a87e

Browse files
authored
Rename max output tokens as per api docs (#289)
Co-authored-by: Chris Raethke <codesoda@users.noreply.github.com>
1 parent 9274131 commit bd7a87e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

async-openai/src/types/realtime/session_resource.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub enum TurnDetection {
3535

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

0 commit comments

Comments
 (0)