Deferred review finding: quick/laneb/runner/proxy.ts:67 — The byte bound is not an upper bound for image and document bl

Aperta
#32 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Start with quick/laneb/runner/proxy.ts:67 and trace how the byte bound reserves tokens for OpenRouter requests and how image and document blocks are represented. Compare refusing those blocks with adding per-image and per-page token floors, including the batch cap. Done means OpenRouter media cannot exceed the reserve; check settlement's over_reserve flag for affected sessions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Filed by /ship's pre-landing review of PR #25 (head 3b67e5fe5898). The finding is in code that PR did not change, so it was deferred here instead of being fixed there (review scope frozen after pass 1).

  • Severity: CRITICAL
  • Where: quick/laneb/runner/proxy.ts:67
  • Finding: The byte bound is not an upper bound for image and document blocks: compressed PDFs and low-entropy images cost far more tokens than their base64 bytes. Per the Captain's option C, #25 closes the Anthropic path (an uncounted request with media answers a retryable 529, count_failed_media). Still open: every OpenRouter request uses the byte bound, so a DeepSeek session that sends media can pass its cap, and the batch cap by the same overage.
  • Suggested fix: OpenRouter route: refuse image and document blocks, or add per-image and per-page token floors to the byte bound, at the next preregistration. Until then the settle's over_reserve flag shows any session that passed its reserve.
  • Found by: outside-voice
Lingua principale
TypeScript
Stelle
5
Fork
1
Merge medio
3h 9m
PR unite (30g)
407

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.