Skip to content

v0.0.9 — attachments

Choose a tag to compare

@prashanthaitha24 prashanthaitha24 released this 08 Jun 14:42

Folds attached files into the request — where the real token savings are.

Added

  • promptOptimizer.includeAttachments (on by default): files attached with # are now forwarded to the model (previously the participant silently dropped them).
    • Prose files (.md, .txt, .rst, …) are compressed with the same engine.
    • Code / structured data (.ts, .py, .json, .yaml, …) is preserved byte-for-byte — trimming code is risky (whitespace is syntax in some languages) and low-value.
    • Token before/after now covers the whole prompt + attachments bundle.
    • Binary files and files >512 KB are skipped.

26 tests passing. Install the attached .vsix via "Install from VSIX…", or update from the Marketplace.