BYOK Copilot CLI not working anymore with Deepseek
未關閉
還沒有人認領這個 Issue。
triage
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
Describe the bug
BYOK is not working in Copilot CLI anymore. GPT5.4 is selected and an error is coming: 400 Failed to deserialize the JSON body into the target type: tools[4].type: unknownvariant custom, expected function at line 1 column 47113
export COPILOT_PROVIDER_BASE_URL=https://api.deepseek.com
export COPILOT_MODEL=deepseek-flash
export COPILOT_MODEL=deepseek-v4-pro
export COPILOT_PROVIDER_API_KEY=....
copilot
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用列出的 BYOK 環境變數執行 copilot 進入點,並針對 https://api.deepseek.com 重現該請求。將產生的工具 payload 與 DeepSeek 接受的格式進行比較;當選定的 DeepSeek 模型能夠正常運作且不會出現 custom 工具反序列化錯誤時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- api, cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 活躍
- 描述清晰度
- 需要釐清
- 新手友好度
- 38/100