refactor: import

This commit is contained in:
suyao 2025-12-01 01:33:55 +08:00
parent 4a913fcef7
commit 874d69291f
No known key found for this signature in database

View File

@ -1,21 +1,11 @@
import type { ReasoningDetailUnion } from '@main/apiServer/adapters/openrouter'
interface CacheItem<T> {
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
*/