Skip to content

Commit 5d4ed0e

Browse files
Update src/api/providers/moonshot.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent dcbfe00 commit 5d4ed0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/moonshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class MoonshotHandler extends OpenAiHandler {
3838
}
3939
}
4040

41-
// Override to always include max_completion_tokens for Moonshot
41+
// Override to always include max_tokens for Moonshot (not max_completion_tokens)
4242
protected override addMaxTokensIfNeeded(
4343
requestOptions:
4444
| OpenAI.Chat.Completions.ChatCompletionCreateParamsStreaming

0 commit comments

Comments
 (0)