Skip to content

Commit

Permalink
Do not @ giscus bot (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Sep 16, 2024
1 parent 92ca1ac commit 385dc87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/first_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ def get_completion(messages: list) -> str:

r = requests.post(url, headers=headers, json=data)
r.raise_for_status()
return r.json()["choices"][0]["message"]["content"].strip()
content = r.json()["choices"][0]["message"]["content"].strip()
remove = [" @giscus[bot]"]
for x in remove:
content = content.replace(x, "")
return content


def get_pr_diff(pr_number):
Expand Down

0 comments on commit 385dc87

Please sign in to comment.