From fdfc83220cf996bf264e0fc027a0177be0da63d1 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 21 Mar 2024 23:59:10 -0300 Subject: [PATCH] fix(basic.gblib): FUNCTION GPT. --- packages/gpt.gblib/services/ChatServices.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/gpt.gblib/services/ChatServices.ts b/packages/gpt.gblib/services/ChatServices.ts index aa471d2d..cdbb7abc 100644 --- a/packages/gpt.gblib/services/ChatServices.ts +++ b/packages/gpt.gblib/services/ChatServices.ts @@ -163,8 +163,8 @@ export class ChatServices { // Converts the PDF to PNG. const pngPages: PngPageOutput[] = await pdfToPng(localName, { - disableFontFace: true, - useSystemFonts: true, + disableFontFace: false, + useSystemFonts: false, viewportScale: 2.0, pagesToProcess: [pageNumber], strictPagesToProcess: false, @@ -328,7 +328,8 @@ export class ChatServices { Very important: When answering, besides the answer, at the end of the message, return this information as JSON containing two fields file as PDF 'filename' and 'page' as the page number. - Eg. of JSON generated: file: filename.pdf, page: 3. + Eg. of JSON generated: file: filename.pdf, page: 3. + Never explain the context to the user, just reference the source of the document. \n\n{context}\n\n