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

贡献指南

打开贡献指南

调研方向

Start by tracing how COPILOT_MODEL and provider settings reach the underlying model API. Add support for reading COPILOT_MODEL_EFFORT and passing its value for reasoning models, then verify that the example Azure Responses workflow sends the requested effort level.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
api, cli
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。