Skip to content

Commit 822886b

Browse files
committed
fix: remove TypeScript ignore for max_completion_tokens in GPT-5 model handling
1 parent f89b23c commit 822886b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/api/providers/lite-llm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ export class LiteLLMHandler extends RouterProvider implements SingleCompletionHa
127127

128128
// GPT-5 models require max_completion_tokens instead of the deprecated max_tokens parameter
129129
if (isGPT5Model && maxTokens) {
130-
// @ts-ignore - max_completion_tokens is not in the OpenAI types yet but is supported
131130
requestOptions.max_completion_tokens = maxTokens
132131
} else if (maxTokens) {
133132
requestOptions.max_tokens = maxTokens

0 commit comments

Comments
 (0)