Skip to content

Commit

Permalink
Add intro + explanation in the prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
suarezafelipe committed Apr 11, 2023
1 parent 7d21f88 commit a445d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions review.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def get_review():
print(f"\nPrompt sent to GPT-4: {prompt}\n")

messages = [
{"role": "system", "content": intro + explanation},
{"role": "user", "content": patch_info + task_headline + task_list},
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": intro + explanation + patch_info + task_headline + task_list},
]

response = openai.ChatCompletion.create(
Expand Down

0 comments on commit a445d73

Please sign in to comment.