chore: auto-commit task -

This commit is contained in:
MythEclipse
2026-06-02 17:45:47 +07:00
parent e0d54b7770
commit a2d4ba3f95
2 changed files with 6 additions and 4 deletions
@@ -699,8 +699,9 @@ async function callModerationLLM(
messages: [{ role: "user", content }],
temperature: 0.2,
top_p: 0.95,
// Reduced from 16384 — JSON Schema enforces structure (R2)
max_tokens: 4096,
// Sufficient for 20 moderation results (each ~70-150 tokens).
// Previous 4096 caused LLM truncation after ~6 results.
max_tokens: 16384,
response_format: {
type: "json_schema",
json_schema: {
+3 -2
View File
@@ -696,8 +696,9 @@ async function callModerationLLM(
messages: [{ role: "user", content }],
temperature: 0.2,
top_p: 0.95,
// Reduced from 16384 — JSON Schema enforces structure (R2)
max_tokens: 4096,
// Sufficient for 20 moderation results (each ~70-150 tokens).
// Previous 4096 caused LLM truncation after ~6 results.
max_tokens: 16384,
response_format: {
type: "json_schema",
json_schema: {