Skip to content

Commit d08f44e

Browse files
DaleLJeffersonkrinart
authored andcommitted
in-memory should be in_memory (64bit#521)
Allowed values are in_memory and 24h https://platform.openai.com/docs/guides/prompt-caching#configure-per-request
1 parent 7d5d317 commit d08f44e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

async-openai/src/types/responses/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ pub enum ReasoningSummary {
845845
/// The retention policy for the prompt cache.
846846
#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, ToSchema)]
847847
pub enum PromptCacheRetention {
848-
#[serde(rename = "in-memory")]
848+
#[serde(rename = "in_memory")]
849849
InMemory,
850850
#[serde(rename = "24h")]
851851
Hours24,

0 commit comments

Comments
 (0)