aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2024-05-14 14:34:03 -0400
committerSophie Zhang <sophie_zhang@brown.edu>2024-05-14 14:34:03 -0400
commit533fcbc63e4d6bda80b05f24bbd424b841971708 (patch)
tree629c2f506e7cae54fc1e43508cfd79cd14015bb7
parent1e6d483091131db07b30e96d0910c858eb4f37c4 (diff)
prompt tweak
-rw-r--r--src/client/apis/gpt/customization.ts7
1 files changed, 1 insertions, 6 deletions
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({