github / github/copilot-cli

Bug with BYOK: reasoning effort not supported for model "glm-5.2:cloud"

未关闭
#4,012 2 条评论 23 个 reaction 已指派 0 人 在 GitHub 查看
area:configuration area:models
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

I am experiencing an issue when using a custom BYOK configuration with Copilot CLI. Specifically, when I try to use the `--reasoning-effort max` flag, the CLI returns an error stating that the model does not support it, even though the configuration is otherwise valid.

### Affected version

v1.0.68

### Steps to reproduce the behavior

1. Run the following command:

COPILOT_PROVIDER_TYPE=openai COPILOT_PROVIDER_WIRE_API=responses COPILOT_PROVIDER_BASE_URL=https://ollama.com/v1 COPILOT_PROVIDER_API_KEY=$OLLAMA_API_KEY COPILOT_MODEL=glm-5.2:cloud COPILOT_PROVIDER_MAX_PROMPT_TOKENS=999424 COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=131072 copilot --yolo --reasoning-effort max -p hi

2. Observe the error:
Error: Model "glm-5.2:cloud" does not support reasoning effort configuration (requested: "max").

### Expected behavior

The CLI should handle the reasoning effort flag gracefully or allow it for models that might support it, or at least provide a clearer error message indicating why it's not supported for this specific model configuration. Ideally, it should work as expected if the underlying API supports it.

### Additional context

I am confident I can use the command `COPILOT_PROVIDER_TYPE=openai COPILOT_PROVIDER_WIRE_API=responses COPILOT_PROVIDER_BASE_URL=https://ollama.com/v1 COPILOT_PROVIDER_API_KEY=$OLLAMA_API_KEY COPILOT_MODEL=glm-5.2:cloud COPILOT_PROVIDER_MAX_PROMPT_TOKENS=999424 COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=131072 copilot --yolo --reasoning-effort max` without `-p` flag.

This issue only exists when using the `-p` flag.

贡献指南

打开贡献指南

调研方向

首先使用列出的 BYOK 环境变量,分别运行带有和不带 -p 标志的已报告命令,并比较如何到达 reasoning-effort 验证。调查 -p 的 CLI 入口路径以及模型能力检查。当配置得到一致处理,或不支持的模型错误明确解释该限制时,即视为完成。

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

评估

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

把新 issue 发到你的邮箱

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