Error: 400 Input length ____ exceeds the maximum allowed input length of ____ tokens

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
zsh
Lĩnh vực
ai, cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi tràn trong Command Code 1.14.1 trên macOS Terminal với zsh, sử dụng model Laguna-s-2.1 sau một phiên tương tác kéo dài. So sánh hành vi và số token được báo cáo của /compact thủ công, auto-compact, /usage và continue; được xem là hoàn tất khi việc compact phản ánh chính xác context còn lại và ngăn các lỗi độ dài đầu vào lặp lại.

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

Mô tả

Summary

When using the ~recently released "Laguna-s-2.1" model, which appears to do a considerable amount of 'thinking', I have regularly encountered the message "Error: 400 Input length ____ exceeds the maximum allowed input length of ____ tokens" (in many cases, with a very small minority :: <~100/100000'th overflow) after interacting with a project's code for awhile. Shortly thereafter, it will refuse to compact (yet still emit too large an input, thus rendering the 'task' effectively unable to complete). The first few such can usually be overcome by a manual /compact (which seems to compact more than the 'auto-compact' sort), followed by 'continue'. After which command, it fails to 'continue' even when 'compact' is claimed to have 'saved' hundreds of thousands of tokens. At which point I have to switch to DeepSeek-V4-Flash-0731 or similar to ~complete. Commands such as "/usage" do not appear to show useful information about the issue.

Expected Behavior

It would seem to me that if context is indeed irretrievably ~overstuffed, then that should be reflected by the /compact command

Actual Behavior

manual /compact claims to recover many tokens, yet overflow errors continue

Steps to reproduce the issue

As shown in report overview

Command Code Version

1.14.1

Operating System

macOS

Terminal/IDE

OSX 'Terminal' w / cmd

Shell

zsh

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

No response

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.

Issue khác của CommandCodeAI/command-code

Tất cả issue của CommandCodeAI/command-code

Issue tương tự

Thêm issue về AI Infra & Agents

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.