Skip to content

Commit

Permalink
refactor(refinePrompt/server.ts): made system and user prompt more co…
Browse files Browse the repository at this point in the history
…ncise
  • Loading branch information
edwardspresume committed Jul 24, 2023
1 parent 2d01e55 commit 915a40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/api/refinePrompt/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 915a40c

Please sign in to comment.