Browse Source

Improve performance

pull/8138/head
Thomas Kaul 4 days ago
parent
commit
4c2eda0558
  1. 3
      apps/api/src/app/endpoints/ai/ai.service.spec.ts

3
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({ await aiService.getActivityRowsFromFile({
file: { buffer: Buffer.from('%PDF-1.7'), mediaType: 'application/pdf' }, file: { buffer: Buffer.from('%PDF-1.7'), mediaType: 'application/pdf' },
locale: 'de-CH' locale: 'de-CH'
@ -206,6 +206,7 @@ describe('AiService', () => {
expect(chat).toHaveBeenCalledWith('vision-model', { expect(chat).toHaveBeenCalledWith('vision-model', {
plugins: [{ id: 'file-parser', pdf: { engine: 'native' } }], plugins: [{ id: 'file-parser', pdf: { engine: 'native' } }],
provider: { require_parameters: true, zdr: true }, provider: { require_parameters: true, zdr: true },
reasoning: { effort: 'none' },
usage: { include: true } usage: { include: true }
}); });
}); });

Loading…
Cancel
Save