New features in PromptCache v0.4.0
mainVersion 0.4.0 introduced several key capabilities for production workloads:
- API Authentication: All management endpoints are now protected by Bearer-token middleware using the
API_AUTH_TOKENenvironment variable. - Streaming (SSE): Full support for
stream: trueacross OpenAI, Mistral, and Claude, including streamed cache hits. - Runtime Config API: Ability to update similarity thresholds and gray-zone settings live via
GET/PATCH /v1/config. - Cache Warming: Ability to bulk pre-populate the cache from historical prompt/response pairs using
POST /v1/cache/warm.