mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 05:39:05 +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> {
|
interface CacheItem<T> {
|
||||||
data: T
|
data: T
|
||||||
timestamp: number
|
timestamp: number
|
||||||
duration: 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
|
* Interface for reasoning cache
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user