From cada29fd6d68afb1375a660d6aa1f782860ffdec Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Mon, 28 Oct 2024 12:42:37 -0300 Subject: [PATCH] fix(all): LLM JSON. --- packages/llm.gblib/services/ChatServices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/llm.gblib/services/ChatServices.ts b/packages/llm.gblib/services/ChatServices.ts index 8bf6db84..8805bea2 100644 --- a/packages/llm.gblib/services/ChatServices.ts +++ b/packages/llm.gblib/services/ChatServices.ts @@ -403,7 +403,7 @@ export class ChatServices { Let me help improve that prompt to be more concise and clearer: RESPONSE FORMAT: Return only a single valid JSON object with no surrounding text. Structure: - {"text": "Complete response as a single string, using \\n for all line breaks, bullets and lists", "sources": [{"file": "filename", "page": number}]} + {{"text": "Complete response as a single string, using \\n for all line breaks, \n1. bullets and; \n2.lists.", "sources": [{{"file": "filename", "page": number}}]}} CRITICAL REQUIREMENTS: 1. Only valid JSON, no text/formatting before/after