mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
feat(provider,web,asr): enhance model management with explicit provider metadata (#2701)
* feat(provider,web): enhance model management with provider options * fix(asr): enhance compatibility for ElevenLabs transcription model * fix(provider,web): align provider availability predicates and add flow gating * fix(web,asr): preserve legacy elevenlabs transcription configs * fix(provider,web,asr): normalize elevenlabs configs and gate default chat models * fix: tighten provider catalog and elevenlabs compatibility
This commit is contained in:
@@ -27,12 +27,24 @@ export interface ModelInfo {
|
||||
status: "available" | "unconfigured" | "unreachable"
|
||||
is_default: boolean
|
||||
is_virtual: boolean
|
||||
default_model_allowed?: boolean
|
||||
}
|
||||
|
||||
export interface ModelProviderOption {
|
||||
id: string
|
||||
default_api_base: string
|
||||
empty_api_key_allowed: boolean
|
||||
create_allowed: boolean
|
||||
default_model_allowed: boolean
|
||||
default_auth_method?: string
|
||||
auth_method_locked?: boolean
|
||||
}
|
||||
|
||||
interface ModelsListResponse {
|
||||
models: ModelInfo[]
|
||||
total: number
|
||||
default_model: string
|
||||
provider_options: ModelProviderOption[]
|
||||
}
|
||||
|
||||
interface ModelActionResponse {
|
||||
|
||||
Reference in New Issue
Block a user