| 3631 | * Returns the valid options for that model, or null if the model doesn't support verbosity |
| 3632 | */ |
| 3633 | export function getVerbosityValuesForModel(modelId: string): string[] | null { |
| 3634 | for (const provider of Object.values(PROVIDER_DEFINITIONS)) { |
| 3635 | const model = provider.models.find((m) => m.id.toLowerCase() === modelId.toLowerCase()) |
| 3636 | if (model?.capabilities.verbosity) { |
| 3637 | return model.capabilities.verbosity.values |
| 3638 | } |
| 3639 | } |
| 3640 | return null |
| 3641 | } |
| 3642 | |
| 3643 | /** |
| 3644 | * Check if a model supports native structured outputs. |