From d9381fd73dd06f0e435c8b79934fb9627119e20c Mon Sep 17 00:00:00 2001 From: Ferris Lucas Date: Wed, 4 Oct 2023 21:44:05 -0500 Subject: [PATCH] Use the system message to bias towards proper json formatting --- src/services/SystemMessage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/SystemMessage.js b/src/services/SystemMessage.js index 2be519d..71a106b 100644 --- a/src/services/SystemMessage.js +++ b/src/services/SystemMessage.js @@ -5,7 +5,10 @@ export default class SystemMessage { You work diligently to service the user's request. Only include changed files in your response. Don't abbreviate file contents - include the whole file. -Use the crud_operations function to create, update, and delete files as necessary in order to fulfill the user's request.` }] +Use the crud_operations function to create, update, and delete files as necessary in order to fulfill the user's request. +VERY IMPORTANT: In your response, the fileContents value should NOT be surrounded with three quotes. The fileContents value should always be a valid json string. +` + }] } } \ No newline at end of file