From 874d69291fa7df53a6e473f5b2d716be8821613d Mon Sep 17 00:00:00 2001 From: suyao Date: Mon, 1 Dec 2025 01:33:55 +0800 Subject: [PATCH] refactor: import --- src/main/services/CacheService.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main/services/CacheService.ts b/src/main/services/CacheService.ts index b9de349b7b..84c6935d3d 100644 --- a/src/main/services/CacheService.ts +++ b/src/main/services/CacheService.ts @@ -1,21 +1,11 @@ +import type { ReasoningDetailUnion } from '@main/apiServer/adapters/openrouter' + interface CacheItem { data: T timestamp: number duration: number } -// Import the reasoning detail type from openrouter adapter -type ReasoningDetailUnion = { - id?: string | null - format?: 'unknown' | 'openai-responses-v1' | 'xai-responses-v1' | 'anthropic-claude-v1' | 'google-gemini-v1' | null - index?: number - type: 'reasoning.summary' | 'reasoning.encrypted' | 'reasoning.text' - summary?: string - data?: string - text?: string | null - signature?: string | null -} - /** * Interface for reasoning cache */