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)