(input: {
providers: readonly ConfigOptionProvider[]
currentModel: ModelSelection["model"]
currentVariant?: string
includeVariants?: boolean
})
| 29 | } |
| 30 | |
| 31 | export function buildModelSelectOption(input: { |
| 32 | providers: readonly ConfigOptionProvider[] |
| 33 | currentModel: ModelSelection["model"] |
| 34 | currentVariant?: string |
| 35 | includeVariants?: boolean |
| 36 | }): SessionConfigOption { |
| 37 | return { |
| 38 | id: "model", |
| 39 | name: "Model", |
| 40 | category: "model", |
| 41 | type: "select", |
| 42 | currentValue: formatCurrentModelId({ |
| 43 | model: input.currentModel, |
| 44 | variant: input.currentVariant, |
| 45 | variants: variantsForModel(input.providers, input.currentModel), |
| 46 | includeVariant: input.includeVariants ?? false, |
| 47 | }), |
| 48 | options: buildModelSelectOptions(input.providers, { includeVariants: input.includeVariants ?? false }), |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | export function buildEffortSelectOption(input: { |
| 53 | variants: readonly string[] |
no test coverage detected