We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff8896 commit 67c6254Copy full SHA for 67c6254
1 file changed
lib/request/request-transformer.ts
@@ -1087,7 +1087,9 @@ export async function transformRequestBody(
1087
// This allows reasoning context to persist across turns without server-side storage
1088
body.include = resolveInclude(modelConfig, body);
1089
1090
- // Remove unsupported parameters
+ // 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.
1093
body.max_completion_tokens = undefined;
1094
1095
return body;
0 commit comments