Skip to content

Commit 3d576b1

Browse files
committed
fix: remove TypeScript ignore for max_completion_tokens in GPT-5 model handling
1 parent c04e019 commit 3d576b1

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
@@ -204,7 +204,6 @@ export class LiteLLMHandler extends RouterProvider implements SingleCompletionHa
204204

205205
// GPT-5 models require max_completion_tokens instead of the deprecated max_tokens parameter
206206
if (isGPT5Model && info.maxTokens) {
207-
// @ts-ignore - max_completion_tokens is not in the OpenAI types yet but is supported
208207
requestOptions.max_completion_tokens = info.maxTokens
209208
} else if (info.maxTokens) {
210209
requestOptions.max_tokens = info.maxTokens

0 commit comments

Comments
 (0)