Download Latest Version v0.3.5 source code.tar.gz (786.5 kB)
Email in envelope

Get an email when there's a new version of PasteGuard

Home / v0.3.3
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-02-27 626 Bytes
v0.3.3 source code.tar.gz 2026-02-27 786.4 kB
v0.3.3 source code.zip 2026-02-27 839.6 kB
Totals: 3 Items   1.6 MB 2

Fixes

🔧 Prompt caching restored — Fixed Zod schemas silently stripping cache_control fields from Anthropic requests (#74)

Without .passthrough() on nested schemas, fields like cache_control: { type: "ephemeral" } were removed before forwarding to the API. This caused all requests to be billed as uncached, significantly increasing token costs.

Also in this release

  • Added .passthrough() to OpenAI schemas for consistency (preserves name, tool_calls, audio fields)
  • Added regression tests for both providers

Full Changelog: https://github.com/sgasser/pasteguard/compare/v0.3.2...v0.3.3

Source: README.md, updated 2026-02-27