github / github/copilot-cli

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

オープン
#3,954 コメント 4 件 リアクション 3 件 担当者 0 名 GitHub で見る
area:agents area:models
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### 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)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue に記載されている外部 DeepSeek エンドポイントの設定で explore ツールの呼び出しを再現します。explore ツールのモデル選択とリクエストペイロードを追跡し、設定されたモデルが gpt-5.4-mini の代わりに転送されること、また設定されたエンドポイントに対するリクエストが成功することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
api, cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
64/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。