Skip to content

Commit 32cb10a

Browse files
committed
fix: the cluade code small model where max_tokens is only 512, which is incompatible with gpt-5-mini
1 parent 5c6e4c6 commit 32cb10a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/messages/responses-translation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const translateAnthropicMessagesToResponsesPayload = (
6464
instructions: translateSystemPrompt(payload.system, payload.model),
6565
temperature: 1, // reasoning high temperature fixed to 1
6666
top_p: payload.top_p ?? null,
67-
max_output_tokens: payload.max_tokens,
67+
max_output_tokens: Math.max(payload.max_tokens, 12800),
6868
tools: translatedTools,
6969
tool_choice: toolChoice,
7070
metadata: payload.metadata ? { ...payload.metadata } : null,

0 commit comments

Comments
 (0)