feat(frontend): 支持提供商预设与自动获取模型

This commit is contained in:
2026-08-30 10:44:04 +08:00
parent f7d864bc4d
commit 0f6938c6a2
5 changed files with 243 additions and 14 deletions
+16
View File
@@ -290,6 +290,14 @@ export interface ProviderConfig {
has_credential: boolean
}
export interface ProviderPreset {
preset_id: string
name: string
provider_type: ProviderType
base_url: string
requires_credential: boolean
}
// ============ Tasks ============
export type TaskStatus = 'todo' | 'in_progress' | 'done' | 'cancelled'
@@ -510,6 +518,14 @@ export interface ApiProviderConfig {
capabilities: string[]
}
export interface ApiProviderPreset {
preset_id: string
name: string
provider_type: ApiProviderType
base_url: string
requires_credential: boolean
}
export interface ApiModelInfo {
model: string
display_name: string