Skip to content

Commit

Permalink
Updated prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Feb 14, 2024
1 parent 423a13f commit c3b81cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/codergpt/commenter/commenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def comment(self, code: str, filename: str, overwrite: bool = False, language: O
invoke_params = {
"input": f"Rewrite and return this {language} code with\
comments: \n{code}\n"
f"Use template {comment_template} as reference to render the code comments."
f"Use template {comment_template} as a style reference to render the docstrings."
"Everything in the template are placeholders."
"Return just the code block since all this will be a file."
"Return just the code block since all this will be saved in a file."
}
else:
invoke_params = {
Expand Down
2 changes: 1 addition & 1 deletion src/codergpt/documenter/documenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def document(
if document_template:
invoke_params = {
"input": f"Document the {language} code with the following: \n{code}\n"
f"Use template {document_template} as reference to render the code documentation."
f"Use template {document_template} as a style reference."
"Everything in the template are placeholders. Return only the relevant documentation content."
}
else:
Expand Down

0 comments on commit c3b81cf

Please sign in to comment.