github / github/copilot-cli

Allow disabling warning the model when AI credits are low

Đang mở
#4,168 0 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 feature or problem you'd like to solve

I set `-max-ai-credits=30` and the model kept getting worried about using all the credits

### Proposed solution

Add an option to suppress whatever warnings are being injected to tell the model it is low on AI credits (or just remove it?).

### Example prompts or workflows

_No response_

### Additional context

I was testing with a local model, and passed `--max-ai-credits=30` (because 30 is the minimum value allowed). The model kept saying "The user is warning me there are only 30 AI credits left so I must be very efficient with my responses".

I can't tell exactly what text was being injected for the model (because when I exported the session there was no such text in there - presumably the export is not complete), but it was happening on every turn. For a local model the credits are not relevant, but even with a cloud model I think I would rather this information be hidden so it won't potentially taint how the model is working. If it runs out, I can `--resume` with another value.

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

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

Hướng nghiên cứu

Bắt đầu từ việc xử lý tùy chọn --max-ai-credits và lần theo nơi các cảnh báo về số credit thấp được thêm vào ngữ cảnh của model. Issue không nêu tên file hay test nào, vì vậy trước tiên hãy xác định đường dẫn chèn cảnh báo và mọi test CLI liên quan; công việc được xem là hoàn tất khi người dùng có thể tắt các cảnh báo này mà giới hạn credit hiện có và hành vi tiếp tục vẫn hoạt động.

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

Đánh giá

Công nghệ
shell
Lĩnh vực
ai, cli
Loại issue
Tính năng
Độ 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.