diff options
author | Sophie Zhang <sophie_zhang@brown.edu> | 2024-05-14 14:34:03 -0400 |
---|---|---|
committer | Sophie Zhang <sophie_zhang@brown.edu> | 2024-05-14 14:34:03 -0400 |
commit | 533fcbc63e4d6bda80b05f24bbd424b841971708 (patch) | |
tree | 629c2f506e7cae54fc1e43508cfd79cd14015bb7 /src/client/apis/gpt/customization.ts | |
parent | 1e6d483091131db07b30e96d0910c858eb4f37c4 (diff) |
prompt tweak
Diffstat (limited to 'src/client/apis/gpt/customization.ts')
-rw-r--r-- | src/client/apis/gpt/customization.ts | 7 |
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({ |