MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getAnthropicProviderReasoning

Function getAnthropicProviderReasoning

src/api/transform/reasoning.ts:115–125  ·  view source on GitHub ↗
({
	model,
	reasoningBudget,
	settings,
}: GetModelReasoningOptions)

Source from the content-addressed store, hash-verified

113 shouldUseReasoningBudget({ model, settings }) ? { type: "enabled", budget_tokens: reasoningBudget! } : undefined
114
115export 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
127export const getOpenAiReasoning = ({
128 model,

Callers 4

getModelMethod · 0.90
getModelMethod · 0.90
createMessageMethod · 0.90
reasoning.spec.tsFile · 0.90

Calls 1

getAnthropicReasoningFunction · 0.85

Tested by

no test coverage detected