Skip to content

Commit 4fd7297

Browse files
fix: groq service_tier is OnDemand
1 parent 61ab980 commit 4fd7297

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

async-openai/src/types/chat.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,8 @@ pub enum ServiceTier {
618618
Flex,
619619
Scale,
620620
Priority,
621+
#[serde(rename = "on_demand")]
622+
OnDemand,
621623
}
622624

623625
#[derive(Clone, Serialize, Debug, Deserialize, PartialEq)]
@@ -627,6 +629,8 @@ pub enum ServiceTierResponse {
627629
Default,
628630
Flex,
629631
Priority,
632+
#[serde(rename = "on_demand")]
633+
OnDemand,
630634
}
631635

632636
#[derive(Clone, Serialize, Debug, Deserialize, PartialEq)]

async-openai/src/types/responses.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ pub enum ServiceTier {
334334
Flex,
335335
Scale,
336336
Priority,
337+
338+
#[serde(rename = "on_demand")]
339+
OnDemand,
337340
}
338341

339342
/// Truncation strategies.

0 commit comments

Comments
 (0)