fix: troca chatLog.success inexistente por chatLog.info

chatLog não tem success: a chamada lançava TypeError dentro do try, e
analyzeQueryContext e enrichQueries sempre descartavam a resposta do
modelo e caíam no fallback heurístico.
This commit is contained in:
evandro committed 2026-11-16 00:16:21 -03:00
1 parent 94941414e9
commit 7247e1e80b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -206,7 +206,7 @@ export async function analyzeQueryContext(
complexity: analysis.complexity || 'moderate',
};
chatLog.success(`[ContextualAnalysis] Contexto extraído: ${context.intent}, ${context.entities.length} entidades, ${context.topics.length} tópicos`);
chatLog.info(`[ContextualAnalysis] Contexto extraído: ${context.intent}, ${context.entities.length} entidades, ${context.topics.length} tópicos`);
return context;
} catch (error) {