injectIntoMessages() was JSON.stringify-ing array content (with image blocks), turning base64 data into text tokens (~170K) instead of image tokens (~1,600). Fix: append context as a new text block in the array, preserving image block format. Also fixes token estimation to count images at ~1,600 tokens instead of base64 char length, and adds debug logging for API call token composition. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| nest-cli.json | ||
| package.json | ||
| tsconfig.json | ||