Skip to content

Commit b407494

Browse files
Add prompt_cache_retention option to inference (#1212)
1 parent bf6811f commit b407494

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/agents": patch
3+
---
4+
5+
Add prompt_cache_retention option to inference

agents/src/inference/llm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface ChatCompletionOptions extends Record<string, unknown> {
6363
prediction?: ChatCompletionPredictionContentParam | null;
6464
presence_penalty?: number;
6565
prompt_cache_key?: string;
66+
prompt_cache_retention?: 'in_memory' | '24h';
6667
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high';
6768
safety_identifier?: string;
6869
seed?: number;

0 commit comments

Comments
 (0)