mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 14:29:15 +08:00
refactor(message): remove deprecated properties from message types
- Commented out `modelId` and `knowledgeBaseIds` properties in `BaseBlock` and `MainTextBlock` interfaces, marking them as dead code for future removal in v2. - This change helps to clean up the codebase and prepare for upcoming version updates.
This commit is contained in:
parent
b156ee68e0
commit
68f9add566
@ -58,7 +58,7 @@ export interface BaseBlock {
|
|||||||
type: BlockType
|
type: BlockType
|
||||||
createdAt: number // timestamp
|
createdAt: number // timestamp
|
||||||
updatedAt?: number
|
updatedAt?: number
|
||||||
modelId?: string
|
// modelId?: string // v1's dead code, will be removed in v2
|
||||||
metadata?: Record<string, unknown>
|
metadata?: Record<string, unknown>
|
||||||
error?: SerializedErrorData
|
error?: SerializedErrorData
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ export interface UnknownBlock extends BaseBlock {
|
|||||||
export interface MainTextBlock extends BaseBlock {
|
export interface MainTextBlock extends BaseBlock {
|
||||||
type: BlockType.MAIN_TEXT
|
type: BlockType.MAIN_TEXT
|
||||||
content: string
|
content: string
|
||||||
knowledgeBaseIds?: string[]
|
//knowledgeBaseIds?: string[] // v1's dead code, will be removed in v2
|
||||||
citationReferences?: {
|
citationReferences?: {
|
||||||
citationBlockId?: string
|
citationBlockId?: string
|
||||||
citationBlockSource?: string
|
citationBlockSource?: string
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user