docs(core): explain attachment estimate filtering

This commit is contained in:
Aiden Cline 2026-07-06 17:22:08 -05:00
commit f953a8f7e3

View file

@ -86,6 +86,7 @@ const textContext = (request: LLMRequest) => ({
system: request.system,
// TODO: Replace blanket attachment exclusion with model-aware media and file token accounting.
messages: request.messages
// Text attachments are lowered into dedicated marked messages; the original prompt is emitted separately.
.filter((message) => message.metadata?.attachment === undefined)
.map((message) => ({
id: message.id,