github / github/copilot-cli

1.0.82 Regression: Unknown command: /model with BYOK

Đang mở
#4,672 2 bình luận 6 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

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

As of 1.0.81/82 the /model command apparently does nto work anymore if the model is set via environment variables for BYOK (see https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models)

On e.g. Azure AI Foundry multiple models can be hosted and I used the /model command to switch between models (like gpt-5.6-luna/terra/sol) based on requirements, this does not work anymore.

Affected version

1.0.81 and 1.0.82, it works with 1.0.80 on windows x64, verified this by manually downgrading the cli version.

Steps to reproduce the behavior
  1. setup azure ai foundry, deploy a few gpt-5.6 models
  2. run github copilot cli like this:

SET COPILOT_PROVIDER_BASE_URL=https://my-azure-ai-foundry.com/openai/v1
SET COPILOT_PROVIDER_API_KEY=key

SET COPILOT_PROVIDER_TYPE=azure
SET COPILOT_PROVIDER_WIRE_API=responses
SET COPILOT_MODEL=gpt-5.6-luna
copilot --reasoning-effort max
Expected behavior

I can select the model after starting copilot with BYOK settings.

Additional context

No response

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi với các biến môi trường COPILOT_PROVIDER_* và COPILOT_MODEL được ghi trong tài liệu, sau đó so sánh hành vi của /model trong các phiên bản 1.0.80 và 1.0.81/82. Xác nhận rằng có thể chọn một model sau khi khởi chạy copilot với các thiết lập BYOK của Azure AI Foundry, bao gồm cả responses wire API.

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

Đánh giá

Công nghệ
azure, shell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/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.