iconsulting/packages/services/conversation-service
hailin fa835e4f56 fix(agents): preserve image content blocks in context injection — fixes 209K token overflow
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>
2026-02-07 08:51:24 -08:00
..
src fix(agents): preserve image content blocks in context injection — fixes 209K token overflow 2026-02-07 08:51:24 -08:00
Dockerfile fix(docker): copy shared module AFTER npm install to prevent wipe 2026-01-26 03:41:16 -08:00
nest-cli.json Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
package.json feat(agents): add 4-layer response quality control — structured outputs, LLM judge, smart truncation 2026-02-07 01:01:05 -08:00
tsconfig.json Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00