mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +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
|
||||
createdAt: number // timestamp
|
||||
updatedAt?: number
|
||||
modelId?: string
|
||||
// modelId?: string // v1's dead code, will be removed in v2
|
||||
metadata?: Record<string, unknown>
|
||||
error?: SerializedErrorData
|
||||
}
|
||||
@ -84,7 +84,7 @@ export interface UnknownBlock extends BaseBlock {
|
||||
export interface MainTextBlock extends BaseBlock {
|
||||
type: BlockType.MAIN_TEXT
|
||||
content: string
|
||||
knowledgeBaseIds?: string[]
|
||||
//knowledgeBaseIds?: string[] // v1's dead code, will be removed in v2
|
||||
citationReferences?: {
|
||||
citationBlockId?: string
|
||||
citationBlockSource?: string
|
||||
|
||||
Loading…
Reference in New Issue
Block a user