Skip to content

Commit a263e1b

Browse files
authored
Strip out temperature correctly for o-series models (#223)
1 parent ac2d197 commit a263e1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/proxy/src/proxy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,8 +1669,9 @@ async function fetchOpenAI(
16691669
if (!isEmpty(bodyData.max_tokens)) {
16701670
bodyData.max_completion_tokens = bodyData.max_tokens;
16711671
delete bodyData.max_tokens;
1672-
delete bodyData.temperature;
16731672
}
1673+
1674+
delete bodyData.temperature;
16741675
delete bodyData.parallel_tool_calls;
16751676

16761677
// Only remove system messages for old O1 models.

0 commit comments

Comments
 (0)