feat: 设置页新增模型卡片,支持为7种能力配置默认模型

This commit is contained in:
2026-06-07 09:51:04 +08:00
parent 43b14a94a3
commit 074ea0bb1a
8 changed files with 338 additions and 25 deletions

View File

@@ -237,8 +237,21 @@ export type ProviderType = "anthropic" | "openai" | "openai-compatible";
export type RuntimeMode = "development" | "production" | "test";
/** 模型能力到默认模型 ID 的映射,用于后台自动流程 */
export interface DefaultModelSettings {
/** 文本能力,覆盖 text + reasoning */
text?: string | null;
imageRecognition?: string | null;
audioRecognition?: string | null;
videoRecognition?: string | null;
imageGeneration?: string | null;
audioGeneration?: string | null;
videoGeneration?: string | null;
}
export interface SettingsData {
compact?: boolean;
defaultModels?: DefaultModelSettings;
theme: ThemePreference;
}