From be0b81c1fc73dd606514887d2f8f96b33ab9e007 Mon Sep 17 00:00:00 2001 From: GdoongMathew Date: Tue, 21 Jul 2026 20:59:46 +0800 Subject: [PATCH 1/2] add back default `local` repo type --- api/chat_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chat_model.py b/api/chat_model.py index f7cbf2fc4..a3cddd8d2 100644 --- a/api/chat_model.py +++ b/api/chat_model.py @@ -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( "github", description="Type of repository (e.g., 'github', 'gitlab', 'bitbucket')", ) From 4f0e4d690fc115108d838add919f2e0a1919ecd3 Mon Sep 17 00:00:00 2001 From: GdoongMathew Date: Tue, 21 Jul 2026 21:04:44 +0800 Subject: [PATCH 2/2] Apply suggestion from @GdoongMathew --- api/chat_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chat_model.py b/api/chat_model.py index a3cddd8d2..e45fb5b66 100644 --- a/api/chat_model.py +++ b/api/chat_model.py @@ -18,7 +18,7 @@ class ChatCompletionRequest(BaseModel): token: Optional[str] = Field(None, description="Personal access token for private repositories") type: Optional[Literal["local", "github", "gitlab", "bitbucket"]] = Field( "github", - description="Type of repository (e.g., 'github', 'gitlab', 'bitbucket')", + description="Type of repository (e.g., 'local', 'github', 'gitlab', 'bitbucket')", ) # model parameters