From 4c2eda0558305587ba4787b3723f5a5b04cf4ff6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 11 Oct 2026 20:53:44 +0200 Subject: [PATCH] Improve performance --- apps/api/src/app/endpoints/ai/ai.service.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/endpoints/ai/ai.service.spec.ts b/apps/api/src/app/endpoints/ai/ai.service.spec.ts index 25ca009416..549bdcef35 100644 --- a/apps/api/src/app/endpoints/ai/ai.service.spec.ts +++ b/apps/api/src/app/endpoints/ai/ai.service.spec.ts @@ -197,7 +197,7 @@ describe('AiService', () => { ); }); - it('Restricts the routing to endpoints with zero data retention and passes a PDF file to the model itself', async () => { + it('Restricts the routing to endpoints with zero data retention, disables the reasoning and passes a PDF file to the model itself', async () => { await aiService.getActivityRowsFromFile({ file: { buffer: Buffer.from('%PDF-1.7'), mediaType: 'application/pdf' }, locale: 'de-CH' @@ -206,6 +206,7 @@ describe('AiService', () => { expect(chat).toHaveBeenCalledWith('vision-model', { plugins: [{ id: 'file-parser', pdf: { engine: 'native' } }], provider: { require_parameters: true, zdr: true }, + reasoning: { effort: 'none' }, usage: { include: true } }); });