Skip to content

Commit 0605da9

Browse files
authored
fix(provider): persist reasoning across reloads (#79)
1 parent d8c9b86 commit 0605da9

7 files changed

Lines changed: 481 additions & 96 deletions

File tree

src/consts.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ export const IMAGE_DESCRIPTION_UNAVAILABLE = '[Image Description unavailable]';
5454
export const IMAGE_DESCRIPTION_PREFIX = '[Image Description: ';
5555
export const IMAGE_DESCRIPTION_SUFFIX = ']';
5656

57-
// ---- Cache ----
57+
// ---- Reasoning cache ----
5858

59-
/** Max entries in the reasoning-content cache before eviction kicks in. */
60-
export const MAX_CACHE_SIZE = 200;
59+
/** Directory name under globalStorageUri for persisted DeepSeek reasoning_content. */
60+
export const REASONING_CACHE_DIR_NAME = 'reasoning-cache-v1';
61+
62+
/** Keep persisted reasoning long enough to roughly match DeepSeek context cache lifetime. */
63+
export const REASONING_CACHE_TTL_MS = 72 * 60 * 60 * 1000;
6164

6265
// ---- Model registry ----
6366

0 commit comments

Comments
 (0)