🚀 Auto-deploy: BrainWind atualizado em 15/07/2026 11:54:37
This commit is contained in:
@@ -140,6 +140,10 @@ async function callMinimax(
|
||||
},
|
||||
body: JSON.stringify(body),
|
||||
}, 600000, signal);
|
||||
if (!response.ok) {
|
||||
const errText = await response.text();
|
||||
throw new Error(`MiniMax HTTP ${response.status}: ${errText.substring(0, 100)}...`);
|
||||
}
|
||||
const data = await response.json() as { choices?: { message?: { content?: string } }[]; error?: { message?: string } };
|
||||
if (data.error) throw new Error(`MiniMax error: ${data.error.message}`);
|
||||
const content = data.choices?.[0]?.message?.content;
|
||||
@@ -226,7 +230,7 @@ export async function runAudit(
|
||||
): Promise<AuditReport> {
|
||||
onProgress?.(0);
|
||||
const maxRetriesPerChunk = 2;
|
||||
const chunkSize = 5; // Reduzido de 10 para 5 devido ao alto volume de tokens do Chain of Thought
|
||||
const chunkSize = config.provider === 'minimax' ? 1 : 5; // Reduzido para 1 no MiniMax devido a timeouts (504) por geração excessiva de tokens de raciocínio.
|
||||
|
||||
const allLlmResults = [];
|
||||
let completed = 0;
|
||||
|
||||
Reference in New Issue
Block a user