fix: ensure variants also work for completely custom models (#6481)
Co-authored-by: Daniel Smolsky <dannysmo@gmail.com>
This commit is contained in:
parent
3fe5d91372
commit
81fef60266
10 changed files with 955 additions and 27 deletions
|
|
@ -1309,6 +1309,18 @@ export type ProviderConfig = {
|
|||
provider?: {
|
||||
npm: string
|
||||
}
|
||||
/**
|
||||
* Variant-specific configuration
|
||||
*/
|
||||
variants?: {
|
||||
[key: string]: {
|
||||
/**
|
||||
* Disable this variant for the model
|
||||
*/
|
||||
disabled?: boolean
|
||||
[key: string]: unknown | boolean | undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
whitelist?: Array<string>
|
||||
|
|
@ -1717,11 +1729,6 @@ export type Command = {
|
|||
subtask?: boolean
|
||||
}
|
||||
|
||||
export type Variant = {
|
||||
disabled: boolean
|
||||
[key: string]: unknown | boolean
|
||||
}
|
||||
|
||||
export type Model = {
|
||||
id: string
|
||||
providerID: string
|
||||
|
|
@ -1786,7 +1793,9 @@ export type Model = {
|
|||
}
|
||||
release_date: string
|
||||
variants?: {
|
||||
[key: string]: Variant
|
||||
[key: string]: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3497,6 +3506,11 @@ export type ProviderListResponses = {
|
|||
provider?: {
|
||||
npm: string
|
||||
}
|
||||
variants?: {
|
||||
[key: string]: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue