fix(moderation): remove unsupported chat_template_kwargs and reasoning_budget

API provider returns 400 error for these params. Removed from all LLM calls
in llmModerationClient.ts and indonesianTextNormalizer.ts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-01 19:05:06 +07:00
co-authored by Claude Opus 4.8
parent 13efb576d6
commit 80f1069e2f
2 changed files with 0 additions and 7 deletions
-4
View File
@@ -609,8 +609,6 @@ const analyzeSingleMediaImage = async (
top_p: 0.9,
max_tokens: 500,
stream: false,
chat_template_kwargs: { enable_thinking: false },
reasoning_budget: 0,
} as OpenAI.Chat.Completions.ChatCompletionCreateParamsNonStreaming),
);
@@ -698,8 +696,6 @@ async function callModerationLLM(
},
},
stream: false,
chat_template_kwargs: { enable_thinking: false },
reasoning_budget: 0,
} as OpenAI.Chat.Completions.ChatCompletionCreateParamsNonStreaming),
);