From 533fcbc63e4d6bda80b05f24bbd424b841971708 Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Tue, 14 May 2024 14:34:03 -0400 Subject: prompt tweak --- src/client/apis/gpt/customization.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/apis/gpt/customization.ts b/src/client/apis/gpt/customization.ts index 13129b23c..7da04918d 100644 --- a/src/client/apis/gpt/customization.ts +++ b/src/client/apis/gpt/customization.ts @@ -113,12 +113,7 @@ export const gptTrailSlideCustomization = async (inputText: string, properties: } }); - prompt += 'Set unchanged values to null. Please only return the json with these keys and their values.'; - - console.log('messages', [ - { role: 'system', content: prompt }, - { role: 'user', content: `Prompt: ${inputText}, Current properties: ${JSON.stringify(properties)}` }, - ]); + prompt += 'Set unchanged values to null and make sure you include new properties if they are specified in the prompt even if they do not exist in current properties. Please only return the json with the keys described and their values.'; try { const response = await openai.chat.completions.create({ -- cgit v1.2.3-70-g09d2