import { M as OpenAICompletionsCompat, O as Model, l as CacheRetention } from "./types-4_uVs5WH.mjs"; import "./types-DkJfb4W3.mjs"; //#region packages/ai/src/providers/openai-prompt-cache.d.ts /** Selects documented lifetime fields shared by Responses and Chat Completions. */ declare function resolveOpenAIPromptCacheParams(model: Pick, cacheRetention: CacheRetention, compat: Required>): { prompt_cache_retention?: "24h"; prompt_cache_options?: { ttl: "30m"; }; }; /** Maximum prompt cache key length accepted by OpenAI-compatible request metadata. */ declare const OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH = 64; /** Truncates a prompt cache key by Unicode code point count. */ declare function clampOpenAIPromptCacheKey(key: string | undefined): string | undefined; //#endregion export { clampOpenAIPromptCacheKey as n, resolveOpenAIPromptCacheParams as r, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH as t };