Fix pr_files data type

This commit is contained in:
Kenny Dizi
2024-07-15 12:28:53 +07:00
parent 2b28153749
commit 174b4b76eb

View File

@ -48,7 +48,7 @@ class FileDescription(BaseModel):
class PRDescription(BaseModel):
type: List[PRType] = Field(description="one or more types that describe the PR content. Return the label member value (e.g. 'Bug fix', not 'bug_fix')")
{%- if enable_semantic_files_types %}
pr_files: [List[FileDescription]] = Field(max_items=15, description="a list of the files in the PR, and their changes summary.")
pr_files: List[FileDescription] = Field(max_items=15, description="a list of the files in the PR, and their changes summary.")
{%- endif %}
description: str = Field(description="an informative and concise description of the PR. Use bullet points. Display first the most significant changes.")
title: str = Field(description="an informative title for the PR, describing its main theme")