Skip to content

Commit

Permalink
fix: Add a clause 'single' to constrain the LLM to not return more th…
Browse files Browse the repository at this point in the history
…an one codebock (#55)
  • Loading branch information
anshulthakur authored Jan 28, 2025
1 parent 907c890 commit 3ac2227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc_comments_ai/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(
"Add a detailed doc comment to the following {language} method:\n{code}\n"
"The doc comment should describe what the method does. "
"{inline_comments} "
"Return the method implementaion with the doc comment as a markdown code block. "
"Return the method implementaion with the doc comment as a single markdown code block. "
"Don't include any explanations {haskell_missing_signature}in your response."
)
self.prompt = PromptTemplate(
Expand Down

0 comments on commit 3ac2227

Please sign in to comment.