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:
1 parent
94941414e9
commit
7247e1e80b
2 files changed
+2
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user