Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Feb 6, 2024
1 parent 3b054f3 commit eaf1343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/build-ghautodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_suggested_docstring(prompt, **format_args):
model="gpt-3.5-turbo-1106",
)
docstring = chat_completion.choices[0].message.content
docstring = docstring.replace('"""', r"\"\"\"")
docstring = docstring.replace('"""', "")
docstring = textwrap.fill(docstring, replace_whitespace=False)
docstring = textwrap.indent(docstring, " " * 4)
docstring = f' """\n{docstring}\n """'
Expand Down

0 comments on commit eaf1343

Please sign in to comment.