优化: AI Chat全栈多批审查修复与架构清理(risk_level清理/路由解耦/工具渲染/测试补测/死代码)
This commit is contained in:
@@ -203,10 +203,10 @@ export type Modality = 'text' | 'vision' | 'audio' | 'video'
|
||||
/** 维度 2 — 能力(模型能做什么)。serde snake_case 字面量。 */
|
||||
export type Capability = 'tool_use' | 'embedding' | 'code_gen'
|
||||
|
||||
/** 维度 3 — 价格分级(成本)。serde snake_case 字面量。 */
|
||||
export type CostTier = 'free' | 'low' | 'medium' | 'high'
|
||||
/** 维度 3 — 价格分级(成本)。serde snake_case 字面量。'free' 已删(B-260618-05 死档,预设/启发式从不赋值)。 */
|
||||
export type CostTier = 'low' | 'medium' | 'high'
|
||||
|
||||
/** 维度 4 — 智力分级。serde snake_case 字面量。 */
|
||||
/** 维度 4 — 智力分级。serde snake_case 字面量。CR-260618-11#3:与 CostTier 同,cost/intel 已从路由硬过滤(B-260618-03)及前端标签(UX-260618-04)去除,字段保留仅 DB 兼容,不再参与路由选模型。 */
|
||||
export type IntelligenceTier = 'lite' | 'standard' | 'plus' | 'ultra'
|
||||
|
||||
/** 探测来源(只读,由后端探测器填充)。serde snake_case 字面量。 */
|
||||
@@ -300,7 +300,7 @@ export type ContentPart =
|
||||
/** AI 消息(前端渲染用,isError 标记错误消息用于差异化样式) */
|
||||
export interface AiMessage {
|
||||
id: string
|
||||
role: 'user' | 'assistant' | 'tool'
|
||||
role: 'user' | 'assistant' | 'tool' | 'system'
|
||||
content: string
|
||||
isError?: boolean
|
||||
toolCalls?: AiToolCallInfo[]
|
||||
|
||||
Reference in New Issue
Block a user