Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

PromptCacheOptions.md

18 lines323 Bytes

type PromptCacheOptions = 
  | PromptCacheRetention
  | {
  key?: string;
  retention?: PromptCacheRetention;
};

Defined in: packages/ai/src/types.ts:1272

The promptCache option of chat(): a retention, or an object with a retention and a cache key.