Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/chat_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ChatCompletionRequest(BaseModel):
messages: List[ChatMessage] = Field(..., description="List of chat messages")
filePath: Optional[str] = Field(None, description="Optional path to a file in the repository to include in the prompt")
token: Optional[str] = Field(None, description="Personal access token for private repositories")
type: Optional[Literal["github", "gitlab", "bitbucket"]] = Field(
type: Optional[Literal["local", "github", "gitlab", "bitbucket"]] = Field(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The repository type "local" has been added to the type field's allowed Literal values, but the field's description on line 21 has not been updated to reflect this change.\n\nTo ensure the generated OpenAPI/Swagger documentation is accurate and complete, please update the description to include 'local'.\n\nFor example:\npython\n type: Optional[Literal["local", "github", "gitlab", "bitbucket"]] = Field(\n "github",\n description="Type of repository (e.g., 'local', 'github', 'gitlab', 'bitbucket')",\n )\n

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in 4f0e4d6

"github",
description="Type of repository (e.g., 'github', 'gitlab', 'bitbucket')",
Comment thread
GdoongMathew marked this conversation as resolved.
Outdated
)
Expand Down
Loading