diff --git a/app/billing/frontend/template_builder.html b/app/billing/frontend/template_builder.html index b285da8..d62d57c 100644 --- a/app/billing/frontend/template_builder.html +++ b/app/billing/frontend/template_builder.html @@ -1360,7 +1360,7 @@ async function autoGenerateTemplate() { try { // Call Ollama to analyze the invoice - const response = await fetch('/api/v1/supplier-invoices/ai-analyze', { + const response = await fetch('/api/v1/supplier-invoices/ai/analyze', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({