Skip to content

Commit

Permalink
feat: improve prompt for suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
fiqryq committed May 19, 2024
1 parent d228b82 commit 830da99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const reviewCodeWithOpenAI = async (code) => {
},
{
role: 'user',
content: `Review the following code and provide feedback. Additionally, please offer your best suggestions for improvement:\n\n${code}`,
content: `Please review the following code and provide feedback. Additionally, kindly offer your best suggestions for improvement and provide sample code if possible:\n\n${code}`,
},
],
max_tokens: 150,
Expand Down

0 comments on commit 830da99

Please sign in to comment.