移除 CodeBuddy auto 模型预设,新增 tool call 分组折叠
- 移除 CODEBUDDY_MODEL_PRESETS 常量及 getAgentModelPresets 中的 codebuddy 分支(auto 模型实际不可用) - 新增 ToolCallGroup 组件,支持 Codex 风格可折叠 tool call 分组 - ChatMessageList 将连续 tool 消息、底部 pending calls、内嵌未解析 calls 分组展示 - 流式输出时自动展开,完成后自动折叠,支持手动切换
This commit is contained in:
@@ -328,16 +328,11 @@ export const CODEX_MODEL_PRESETS: AgentModelPreset[] = [
|
||||
{ id: 'o4-mini', name: 'o4-mini', description: 'Fast reasoning' },
|
||||
];
|
||||
|
||||
export const CODEBUDDY_MODEL_PRESETS: AgentModelPreset[] = [
|
||||
{ id: 'auto', name: 'Auto', description: 'Automatically select the best model' },
|
||||
];
|
||||
|
||||
export function getAgentModelPresets(agentCommand?: string): AgentModelPreset[] {
|
||||
if (!agentCommand) return [];
|
||||
const basename = agentCommand.split('/').pop()?.toLowerCase() ?? '';
|
||||
if (basename.startsWith('claude')) return CLAUDE_MODEL_PRESETS;
|
||||
if (basename.startsWith('codex')) return CODEX_MODEL_PRESETS;
|
||||
if (basename.startsWith('codebuddy')) return CODEBUDDY_MODEL_PRESETS;
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user