Skip to content

Commit 67c6254

Browse files
committed
docs: clarify max output token passthrough safety
1 parent 8ff8896 commit 67c6254

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/request/request-transformer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,9 @@ export async function transformRequestBody(
10871087
// This allows reasoning context to persist across turns without server-side storage
10881088
body.include = resolveInclude(modelConfig, body);
10891089

1090-
// Remove unsupported parameters
1090+
// Preserve caller-supplied max_output_tokens from the in-memory request body.
1091+
// No filesystem reads or token-bearing values are introduced at this stage.
1092+
// Remove unsupported parameters.
10911093
body.max_completion_tokens = undefined;
10921094

10931095
return body;

0 commit comments

Comments
 (0)