github / github/copilot-cli

Bug: `explore` tool hardcodes model to `gpt-5.4-mini`, ignoring custom/DeepSeek API configuration

Đang mở
#3,954 4 bình luận 3 reaction 0 người được giao Xem trên GitHub
area:agents area:models
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

After updating to the latest version of the GitHub Copilot CLI (v1.0.65), agent decision/attempt to invoke the `explore` tool ignores the configured custom model (e.g., DeepSeek endpoint configuration) and instead attempts to pass `gpt-5.4-mini` to the API endpoint. This causes upstream API providers like DeepSeek to fail with a `400 Bad Request` because the model parameter is invalid for their endpoint.

```
✗ Explore(gpt-5.4-mini) Explore tracker button color flow
└ No response generated

✗ 400 {"error":{"message":"The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed gpt-5.4-mini.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
```

### Affected version

GitHub Copilot CLI 1.0.65

### Steps to reproduce the behavior

1. Configure GitHub Copilot CLI to use an external custom endpoint / DeepSeek API.
3. Run any command using the autonomous explore tool feature.
5. See error.

### Expected behavior

The `explore` tool should respect the local configuration or environment variables defining the target model (e.g., `deepseek-v4-pro`), rather than falling back to a hardcoded default model name string during the tool call payload execution.

### Additional context

- **OS:** Windows 11 / WSL2 (Ubuntu 24.04 LTS)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing the explore tool call with the external DeepSeek endpoint configuration described in the issue. Trace the explore tool's model selection and request payload, then verify that the configured model is forwarded instead of gpt-5.4-mini and that the request succeeds against the configured endpoint.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
api, cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
64/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.