Skip to content

Commit

Permalink
Update data
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 17, 2024
1 parent b3118e7 commit c5b7468
Show file tree
Hide file tree
Showing 2 changed files with 2,600 additions and 2,218 deletions.
21 changes: 12 additions & 9 deletions backend/apps/github/management/commands/github_enrich_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,31 @@ def handle(self, *args, **options):
if update_summary:
open_ai.set_max_tokens(500).set_prompt(
(
"Summarize the following GitHub issue."
"Avoid mentioning author's name or issue creation date."
"Avoid using lists for description."
"Summarize the following GitHub issue using simple English."
"Do not mention author's name or issue creation date."
"Do not use lists for description."
"Do not use markdown in output."
"Limit summary by 3 sentences."
"Limit the entire summary to 3 sentences."
)
if issue.project.is_documentation_type
else (
"Summarize the following GitHub issue using imperative mood."
"Summarize the following GitHub issue using imperative mood using "
"simple English."
"Use a good amount technical details."
"Avoid using lists for description."
"Do not use lists for description."
"Do not use mardown in output."
"Limit summary by 3 sentences."
"Limit the entire summary to 3 sentences."
)
)
issue.summary = open_ai.complete() or ""

# Generate hint
if update_hint:
open_ai.set_max_tokens(1000).set_prompt(
"Describe possible steps of approaching the problem."
"Limit output by 10 steps."
"Describe possible steps of approaching the problem using simple English."
"Limit the entire guidance to 10 steps top."
"Do not start your response with confirmation phrases like "
"'sure', 'certainly', and so on. Go straight to the details."
)
issue.hint = open_ai.complete() or ""

Expand Down
Loading

0 comments on commit c5b7468

Please sign in to comment.