github / github/copilot-cli

Support COPILOT_MODEL_EFFORT for reasoning effort level

未關閉
#2,559 1 則留言 6 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:models
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

GitHub Copilot CLI lacks a mechanism to adjust "reasoning effort" for reasoning models (such as the gpt-5 series) when using BYOK

### Proposed solution

When a user sets `COPILOT_MODEL_EFFORT` environment variable, the CLI should pass this parameter to the underlying model API.

This feature will enable developers to use a lower reasoning level through environment variable and to increase the reasoning level for complex architectural designs or debugging tasks to obtain more accurate output, thereby enhancing the utility of the CLI tool in professional development scenarios.

### Example prompts or workflows

```powershell
$env:COPILOT_PROVIDER_TYPE='azure'
$env:COPILOT_PROVIDER_WIRE_API='responses'
$env:COPILOT_PROVIDER_BASE_URL='https://resource-name.openai.azure.com'
$env:COPILOT_PROVIDER_API_KEY=$env:AOAI_API_KEY
$env:COPILOT_MODEL_EFFORT='xhigh' # <-- HERE
$env:COPILOT_MODEL='gpt-5.4'
copilot
```

### Additional context

N/A

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。