Skip to content

Implement better support for documenting classes#16

Merged
msvana merged 2 commits intomainfrom
class-docstrings
Jan 3, 2024
Merged

Implement better support for documenting classes#16
msvana merged 2 commits intomainfrom
class-docstrings

Conversation

@msvana
Copy link
Copy Markdown
Contributor

@msvana msvana commented Dec 21, 2023

This PR improves the support for class docstrings. It includes the following changes:

  • New default prompt explicitly specifying docstring format and mentioning that the input can be both a class or a function.
  • Better GPT output sanitation
  • Better determination of correct indentation

It also changes the default IDE for testing to PyCharm.

@msvana msvana requested a review from petrvecera December 21, 2023 13:14
}

private static HttpRequest buildRequest(String apiKey, String model, String prompt, String code) {
System.out.println(prompt);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we want to have in?

@msvana msvana merged commit bf957fd into main Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants