Skip to content
reaatech

llm-cache · packages

Every package shipped from reaatech/llm-cache, published or pending.

Filtering by

2 packages

@reaatech/llm-cache

v0.1.0
A caching engine for LLM calls that provides both exact-match (SHA-256 hash) and semantic (cosine similarity on embeddings) cache lookups, with model-aware fingerprinting, use-case segmentation, and adaptive TTL. It exports a `CacheEngine` class that requires `StorageAdapter` and `VectorStorageAdapter` implementations (e.g., in-memory, Redis, DynamoDB) and an `Embedder` for semantic matching.
status
published
published
6 months ago

@reaatech/llm-cache-cost-tracker

v0.1.0
A cost calculator and pricing database for LLM API usage, providing a `CostCalculator` class that computes per-request costs from token counts and model pricing, and tracks savings from cache hits. It ships with reference pricing for 40+ models across OpenAI, Anthropic, and Google, and implements the `CostCalculatorLike` interface for drop-in integration with `@reaatech/llm-cache`.
status
published
published
6 months ago