From 915a40c48c4f1f264218ff51146ae60a3ccba70c Mon Sep 17 00:00:00 2001 From: Edwards Presume Date: Mon, 24 Jul 2023 14:47:27 -0400 Subject: [PATCH] refactor(refinePrompt/server.ts): made system and user prompt more concise --- src/routes/api/refinePrompt/+server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/api/refinePrompt/+server.ts b/src/routes/api/refinePrompt/+server.ts index 75975de..2651f1b 100644 --- a/src/routes/api/refinePrompt/+server.ts +++ b/src/routes/api/refinePrompt/+server.ts @@ -19,9 +19,9 @@ async function fetchRefinedPrompt(promptText: string) { } const systemPrompt = - 'Please only output the refined prompt and nothing else. Please do not prefix the refined prompt output with any text.'; + 'Please output only the refined prompt without any prefixes or additional text.'; - const content = `Please enhance the clarity and effectiveness of this prompt: ${promptText}`; + const content = `Please enhance the clarity and effectiveness of the following prompt: ${promptText}`; const OPENAI_API_URL = 'https://api.openai.com/v1/chat/completions';