fix: chat generation render

This commit is contained in:
zxhlyh
2026-01-27 13:36:22 +08:00
parent 74f94633d7
commit 53bc060cea
12 changed files with 201 additions and 120 deletions

View File

@ -33,9 +33,9 @@ export type IconObject = {
content: string
}
export type ToolCallItem = {
export type LLMGenerationItem = {
id: string
type: 'model' | 'tool' | 'thought'
type: 'model' | 'tool' | 'thought' | 'text'
thoughtCompleted?: boolean
thoughtOutput?: string
@ -55,6 +55,10 @@ export type ToolCallItem = {
modelDuration?: number
modelIcon?: string | IconObject
modelIconDark?: string | IconObject
text?: string
textCompleted?: boolean
isError?: boolean
}
export type ToolCallDetail = {