github / github/copilot-cli

Cannot use Grok 4.20 due to reasoningEffort being sent always for responses wire format

Đang mở
#2,932 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:configuration area:models
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

I'm setting the following envvars:

```
Set COPILOT_PROVIDER_TYPE=openai
Set COPILOT_PROVIDER_BASE_URL=https://api.x.ai/v1
Set COPILOT_MODEL=grok-4.20-non-reasoning
Set COPILOT_PROVIDER_WIRE_API=responses
Set COPILOT_PROVIDER_MAX_PROMPT_TOKENS=2000000
Set COPILOT_PROVIDER_API_KEY=***********
```

There seems to be no way to turn that parameter off entirely (or even customize as proposed at https://github.com/github/copilot-cli/issues/2559).

Ideally there should be support for setting `off` (don't send the parameter at all) as well as custom values via `COPILOT_MODEL_EFFORT` envvar

NOTE: despite 4.20 and 4.1 being reasoning models, the parameter is still not supported. See https://docs.x.ai/developers/model-capabilities/text/reasoning#the-reasoning-parameter

### Affected version

1.0.34

### Steps to reproduce the behavior

Set the above variables so they are valid for xAI (in particular your API key).

### Expected behavior

Requests succeed.

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by tracing how COPILOT_PROVIDER_WIRE_API=responses constructs requests and where reasoningEffort is set from the model configuration. Check the provider and model-effort handling against the xAI behavior described in the issue; done means supporting an off setting or custom COPILOT_MODEL_EFFORT value so the request succeeds without an unsupported parameter.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
api
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.