feat(frontend): 支持提供商预设与自动获取模型
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user