From 55dcb618af9d698266eb0857528708314189713b Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Sat, 20 Dec 2025 01:04:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B1=BB=E5=9E=8B):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Model 接口新增 displayName 字段 - 添加 modelType 类型(claude | codex)用于区分模型类型 --- src/hooks/useSettings.ts | 2 ++ src/types/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.ts index 72fb474..5b76f28 100644 --- a/src/hooks/useSettings.ts +++ b/src/hooks/useSettings.ts @@ -35,6 +35,8 @@ export interface Model { name: string; displayName: string; description: string | null; + // 模型类型:claude | codex + modelType: 'claude' | 'codex'; supportsTools: boolean; supportsThinking: boolean; supportsVision: boolean; diff --git a/src/types/index.ts b/src/types/index.ts index 8bd9b18..4c08214 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -2,6 +2,7 @@ export interface Model { id: string; name: string; + displayName: string; tag: string; }