From 8dcc99b5cdf93d7da99ca09b2838d8a6f380109a Mon Sep 17 00:00:00 2001 From: Hamza Tahir Date: Tue, 24 Sep 2024 11:18:32 +0200 Subject: [PATCH] Added PR workflow --- scripts/generate_pr_description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_pr_description.py b/scripts/generate_pr_description.py index 6699db3dcc7..55a302870a7 100644 --- a/scripts/generate_pr_description.py +++ b/scripts/generate_pr_description.py @@ -82,7 +82,7 @@ def generate_pr_description(): max_tokens=1000 ) - generated_description = response.choices[0].message['content'].strip() + generated_description =response.choices[0].message.content.strip() # Replace the placeholder in the template with the generated description updated_description = current_description.replace(default_template_indicator, generated_description)