Skip to content

Commit

Permalink
improved prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Feb 12, 2024
1 parent a099592 commit e451637
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codergpt/optimizer/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def optimize(
{
"input": f"Optimize, comment and add sphinx docstrings"
f" to the function '{function}' in \n\n```\n{source_code}\n```"
"Return just the code block since all this will be a test file."
"Also explain the optimization in a systematic way as a comment."
}
)
Expand All @@ -47,6 +48,7 @@ def optimize(
{
"input": f"Optimize, comment and add sphinx docstrings"
f" to the class '{classname}' in \n\n```\n{source_code}\n```"
"Return just the code block since all this will be a test file."
"Also explain the optimization in a systematic way."
}
)
Expand All @@ -56,6 +58,7 @@ def optimize(
{
"input": f"Optimize, comment and add sphinx style docstrings"
f" to the following code: \n\n```\n{source_code}\n```"
"Return just the code block since all this will be a test file."
"Also explain the optimization in a systematic way."
}
)
Expand Down

0 comments on commit e451637

Please sign in to comment.