chore: commit workspace updates
This commit is contained in:
1 parent
01a2d171f5
commit
9727656b2b
491 files changed
+12826
-72249
No files matched your search
@@ -6,9 +6,9 @@ export function clampOpenAIPromptCacheKey(value?: string) {
|
||||
return Array.from(key).slice(0, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH).join("");
|
||||
}
|
||||
|
||||
export function canvasAgentPromptCacheKey(sessionId: string) {
|
||||
export function agentPromptCacheKey(sessionId: string) {
|
||||
const value = sessionId.trim();
|
||||
return value ? clampOpenAIPromptCacheKey(`canvas-agent:${value}`) : undefined;
|
||||
return value ? clampOpenAIPromptCacheKey(`cloud-agent:${value}`) : undefined;
|
||||
}
|
||||
|
||||
export function withOpenAIPromptCacheKey<T extends Record<string, unknown>>(body: T, value?: string): T & { prompt_cache_key?: string } {
|
||||
|
||||
Reference in new issue
Block a user