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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static string ToValueString(this ModelResponsePropertiesPromptCacheRetent
return value switch
{
ModelResponsePropertiesPromptCacheRetention2.x24h => "24h",
ModelResponsePropertiesPromptCacheRetention2.InMemory => "in-memory",
ModelResponsePropertiesPromptCacheRetention2.InMemory => "in_memory",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -43,7 +43,7 @@ public static string ToValueString(this ModelResponsePropertiesPromptCacheRetent
return value switch
{
"24h" => ModelResponsePropertiesPromptCacheRetention2.x24h,
"in-memory" => ModelResponsePropertiesPromptCacheRetention2.InMemory,
"in_memory" => ModelResponsePropertiesPromptCacheRetention2.InMemory,
_ => null,
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48241,7 +48241,7 @@ components:
anyOf:
- type: string
enum:
- in-memory
- in_memory
- 24h
description: >
The retention policy for the prompt cache. Set to `24h` to
Expand Down