Skip to content

Commit 156c906

Browse files
committed
Add TODO
1 parent 7907fdb commit 156c906

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/transform/model-params.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export function getModelParams({
8787
reasoningEffort = customReasoningEffort ?? model.reasoningEffort
8888
}
8989

90+
// TODO: We should consolidate this logic to compute `maxTokens` with
91+
// `getModelMaxOutputTokens` in order to maintain a single source of truth.
92+
9093
const isAnthropic = format === "anthropic" || (format === "openrouter" && modelId.startsWith("anthropic/"))
9194

9295
// For "Hybrid" reasoning models, we should discard the model's actual

0 commit comments

Comments
 (0)