({
model,
reasoningBudget,
settings,
}: GetModelReasoningOptions)
| 113 | shouldUseReasoningBudget({ model, settings }) ? { type: "enabled", budget_tokens: reasoningBudget! } : undefined |
| 114 | |
| 115 | export const getAnthropicProviderReasoning = ({ |
| 116 | model, |
| 117 | reasoningBudget, |
| 118 | settings, |
| 119 | }: GetModelReasoningOptions): AnthropicProviderReasoningParams | undefined => { |
| 120 | if (model.supportsReasoningBinary && settings.enableReasoningEffort) { |
| 121 | return { type: "adaptive" } |
| 122 | } |
| 123 | |
| 124 | return getAnthropicReasoning({ model, reasoningBudget, settings }) |
| 125 | } |
| 126 | |
| 127 | export const getOpenAiReasoning = ({ |
| 128 | model, |
no test coverage detected