internal/

directory
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT

Directories

Path Synopsis
Package apikeys mints and verifies the caller credentials stored in the api_key table.
Package apikeys mints and verifies the caller credentials stored in the api_key table.
Package audio transcodes the raw PCM emitted by Gemini TTS into the OGG/Opus container chat apps such as Telegram render as a voice message.
Package audio transcodes the raw PCM emitted by Gemini TTS into the OGG/Opus container chat apps such as Telegram render as a voice message.
Package cooldown holds back upstream targets whose vendor answered 429 or 503 with Retry-After, so routing skips them without network IO until it expires.
Package cooldown holds back upstream targets whose vendor answered 429 or 503 with Retry-After, so routing skips them without network IO until it expires.
Package crypto encrypts vendor LLM keys at rest with AES-256-GCM.
Package crypto encrypts vendor LLM keys at rest with AES-256-GCM.
Package grpcapi implements the proto services on top of proxydb, the registry, and the router.
Package grpcapi implements the proto services on top of proxydb, the registry, and the router.
Package latent projects text into a representation space (JEPA or any embedding encoder) for semantic caching and latent guardrails.
Package latent projects text into a representation space (JEPA or any embedding encoder) for semantic caching and latent guardrails.
llm
Package panicsafe turns a panic into a reported, recoverable error instead of a silent process death.
Package panicsafe turns a panic into a reported, recoverable error instead of a silent process death.
Package pricing turns token usage into money.
Package pricing turns token usage into money.
Package proxydb is the pgx data layer: api keys, the model registry, routing rules, encrypted vendor keys, and the config version counter.
Package proxydb is the pgx data layer: api keys, the model registry, routing rules, encrypted vendor keys, and the config version counter.
Package redisguard fails Redis commands fast while Redis is unreachable.
Package redisguard fails Redis commands fast while Redis is unreachable.
Package rediskeys builds every Redis key this service uses, so one Redis can host several deployments behind REDIS_KEY_PREFIX.
Package rediskeys builds every Redis key this service uses, so one Redis can host several deployments behind REDIS_KEY_PREFIX.
Package router picks a rule for a request and walks its model chain.
Package router picks a rule for a request and walks its model chain.
Package safefetch validates and downloads external media URLs with SSRF protection.
Package safefetch validates and downloads external media URLs with SSRF protection.
Package spendlimit names the monetary limit subjects, periods and refusal reasons, and computes the UTC calendar windows they reset on.
Package spendlimit names the monetary limit subjects, periods and refusal reasons, and computes the UTC calendar windows they reset on.
Package throttle enforces per-model RPM via GCRA, daily token budgets and monetary spend limits in Redis, shared across replicas.
Package throttle enforces per-model RPM via GCRA, daily token budgets and monetary spend limits in Redis, shared across replicas.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL