| 3605 | * Returns the valid options for that model, or null if the model doesn't support reasoning effort |
| 3606 | */ |
| 3607 | export function getReasoningEffortValuesForModel(modelId: string): string[] | null { |
| 3608 | for (const provider of Object.values(PROVIDER_DEFINITIONS)) { |
| 3609 | const model = provider.models.find((m) => m.id.toLowerCase() === modelId.toLowerCase()) |
| 3610 | if (model?.capabilities.reasoningEffort) { |
| 3611 | return model.capabilities.reasoningEffort.values |
| 3612 | } |
| 3613 | } |
| 3614 | return null |
| 3615 | } |
| 3616 | |
| 3617 | export function getModelsWithVerbosity(): string[] { |
| 3618 | const models: string[] = [] |