📋 Status dos Canhotos
Documento a Receber:
18
Processado:
1456
Rejeitado:
1114
Validado:
1617
🖼️ Estatísticas de Imagens
Total de arquivos:
17843
Tamanho total:
5.07 GB
Tamanho médio:
297.78 KB
🗄️ Sistema
Tabelas descobertas:
27
Versão:
1.3 - Provas Visuais IA & Refinamento de Prompt
Ambiente:
development
📋 Logs Recentes
[INFO] Tabelas canhoto descobertas {"tables":["canhoto_frete_202307","canhoto_frete_202308","canhoto_frete_202408","canhoto_frete_202409","canhoto_frete_202410","canhoto_frete_202411","canhoto_frete_202412","canhoto_frete_202501","canhoto_frete_202502","canhoto_frete_202503","canhoto_frete_202504","canhoto_frete_202505","canhoto_frete_202506","canhoto_frete_202507","canhoto_frete_202508","canhoto_frete_202509","canhoto_frete_202510","canhoto_frete_202511","canhoto_frete_202512","canhoto_frete_202601","canhoto_frete_202602","canhoto_frete_202603","canhoto_frete_202604","canhoto_frete_202605","canhoto_frete_202606","canhoto_frete_202607","canhoto_frete_202608"]}
[DEBUG] Query executada {"sql":"SHOW TABLES LIKE 'canhoto_frete_%'","params":[],"execution_time":0.1418769359588623}
[DEBUG] Query executada {"sql":"\n SELECT \n status_processamento,\n COUNT(*) as total,\n AVG(tentativas) as avg_tentativas\n FROM canhotos_processamento \n GROUP BY status_processamento\n ","params":[],"execution_time":0.025526046752929688}
[INFO] Conexão Legacy fechada
[INFO] Conexão estabelecida com LegacyConnection: erp_hlog_notas
[INFO] Conexão Legacy estabelecida com sucesso {"host":"3.216.240.216","database":"erp_hlog_notas","mysql_version":"5.6.46"}
[ERROR] [CRONJOB] Erro na análise por IA {"error":"Erro na API (HTTP 400): {\"error\":\"request (4298 tokens) exceeds the available context size (4096 tokens), try increasing it\"}","path":"\/var\/www\/html\/public\/images\/canhoto_20260805_093948_622961_22_29020880000140.jpg"}
[ERROR] [CRONJOB] Erro na API da IA {"http_code":400,"response":"{\"error\":\"request (4298 tokens) exceeds the available context size (4096 tokens), try increasing it\"}","model":"google\/gemma-3-12b"}
[INFO] [CRONJOB] Imagem redimensionada para análise {"w":1600,"h":900}
[INFO] [CRONJOB] Dimensões originais da imagem {"w":1920,"h":1080}
[INFO] [CRONJOB] Iniciando análise de imagem por IA (RAG Ativado) {"provider":"lm-studio","image":"canhoto_20260805_093948_622961_22_29020880000140.jpg","has_metadata":true}
[DEBUG] [CRONJOB] Query executada {"sql":"\n SELECT id, idt_nota_benassi, nome_tabela, nota, serie, cnpj, caminho_imagem \n FROM canhotos_processamento \n WHERE status_processamento = 'Processado' \n AND (retorno_ia IS NULL OR retorno_ia = '')\n ORDER BY data_inc DESC \n LIMIT 1\n ","params":[],"execution_time":0.019311189651489258}
[INFO] [CRONJOB] Conexão estabelecida com método 'padrão': chevaliertech02
[INFO] [CRONJOB] Tentando conexão com método: padrão
[INFO] Conexão estabelecida com método 'padrão': chevaliertech02
[INFO] Tentando conexão com método: padrão
[DEBUG] [CRONJOB] Query executada {"sql":"\n SELECT id, nota, serie, cnpj, status_processamento, data_inc \n FROM fila_canhoto_mysoft \n ORDER BY data_inc ASC \n LIMIT 1\n ","params":[],"execution_time":0.01734304428100586}
[INFO] [CRONJOB] Conexão Legacy fechada
[INFO] [CRONJOB] Conexão estabelecida com LegacyConnection: erp_hlog_notas
[INFO] [CRONJOB] Conexão Legacy estabelecida com sucesso {"host":"3.216.240.216","database":"erp_hlog_notas","mysql_version":"5.6.46"}