PulseAugur
EN
LIVE 22:47:16

llm-ports v0.1.0-alpha.19 standardizes LLM prompt caching

The llm-ports library has released version 0.1.0-alpha.19, introducing a unified interface for prompt caching across different LLM providers like Anthropic, OpenAI, and Gemini. This new version standardizes how developers interact with caching mechanisms, which vary significantly between providers. The update also includes a breaking change with the renaming of `cost.cacheDiscountUSD` to `cost.cacheSavingsUSD` to better reflect the nature of cost savings from cache hits. AI

IMPACT Simplifies prompt caching implementation for developers working with multiple LLM providers.

RANK_REASON Software library release providing a new feature for developers.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Babak Abbaschian ·

    Prompt cache, finally typed: shipping llm-ports 0.1.0-alpha.19

    <p><strong>TL;DR.</strong> <code>@llm-ports</code> 0.1.0-alpha.19 ships a typed, provider-neutral surface for prompt caching across Anthropic, OpenAI, and Gemini. One optional <code>cacheControl</code> field on every request, four modes. Plus a BREAKING field rename: <code>cost.c…