mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
refactor: import
This commit is contained in:
parent
4a913fcef7
commit
874d69291f
@ -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
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user