/refine failures
Chưa có ai nhận issue này.
- 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
Session Diagnosis
Root cause found. At 06:55:33Z , the /refine command failed with a 400 Bad Request:
"reasoning_effort "medium" was provided, but model gpt-4o-mini-2024-07-18 does not support reasoning effort"
What happened:
- /refine internally invokes gpt-4o-mini (a lightweight utility model) to rewrite your prompt into tags.
- The request incorrectly included reasoningEffort: "medium" as a parameter.
- gpt-4o-mini-2024-07-18 doesn't support the reasoning_effort parameter at all (only reasoning-capable models like o1/o3 do) — Azure OpenAI rejected the call outright with invalid_reasoning_effort .
- The call failed in 545ms, turn_failed fired, and the CLI silently fell back to "Your text was left unchanged" instead of surfacing the real error.
This is a CLI-side bug, not an environment/proxy/auth issue: the refine feature is passing a reasoning-effort setting to a model that categorically rejects it. It's unrelated to the Blue Coat proxy or credentials — the request reached the API fine and got a clean structured rejection.
Affected version
1.0.83
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ lệnh /refine và truy vết request nội bộ của nó tới gpt-4o-mini, tập trung vào cách reasoningEffort được thêm vào và cách turn_failed được xử lý. Hoàn tất khi request không còn gửi thiết lập không được hỗ trợ và lỗi thực tế được hiển thị thay vì âm thầm báo rằng văn bản không thay đổi.
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
- api, 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
- 62/100