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

Function getOpenRouterReasoning

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

Source from the content-addressed store, hash-verified

43}
44
45export const getOpenRouterReasoning = ({
46 model,
47 reasoningBudget,
48 reasoningEffort,
49 settings,
50}: GetModelReasoningOptions): OpenRouterReasoningParams | undefined =>
51 shouldUseReasoningBudget({ model, settings })
52 ? { max_tokens: reasoningBudget }
53 : shouldUseReasoningEffort({ model, settings })
54 ? reasoningEffort && reasoningEffort !== "disable"
55 ? { effort: reasoningEffort as ReasoningEffortExtended }
56 : undefined
57 : undefined
58
59export const getRooReasoning = ({
60 model,

Callers 2

getModelParamsFunction · 0.90
reasoning.spec.tsFile · 0.90

Calls 2

shouldUseReasoningBudgetFunction · 0.90
shouldUseReasoningEffortFunction · 0.90

Tested by

no test coverage detected