Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/odd-peaches-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/ai-openai": patch
---

Change 'in-memory' to 'in_memory' in prompt cache enums
6 changes: 3 additions & 3 deletions packages/ai/openai/src/Generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,7 @@ export class ChatCompletionFunctions extends S.Class<ChatCompletionFunctions>("C
/**
* The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
*/
export class CreateChatCompletionRequestPromptCacheRetentionEnum extends S.Literal("in-memory", "24h") {}
export class CreateChatCompletionRequestPromptCacheRetentionEnum extends S.Literal("in_memory", "24h") {}

export class CreateChatCompletionRequest extends S.Class<CreateChatCompletionRequest>("CreateChatCompletionRequest")({
/**
Expand Down Expand Up @@ -14969,7 +14969,7 @@ export class CreateResponseTruncationEnum extends S.Literal("auto", "disabled")
/**
* The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
*/
export class CreateResponsePromptCacheRetentionEnum extends S.Literal("in-memory", "24h") {}
export class CreateResponsePromptCacheRetentionEnum extends S.Literal("in_memory", "24h") {}

export class CreateResponse extends S.Class<CreateResponse>("CreateResponse")({
"input": S.optionalWith(InputParam, { nullable: true }),
Expand Down Expand Up @@ -15181,7 +15181,7 @@ export class ResponseTruncationEnum extends S.Literal("auto", "disabled") {}
/**
* The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
*/
export class ResponsePromptCacheRetentionEnum extends S.Literal("in-memory", "24h") {}
export class ResponsePromptCacheRetentionEnum extends S.Literal("in_memory", "24h") {}

export class Response extends S.Class<Response>("Response")({
/**
Expand Down
Loading