@latimer-woods-tech/llm
LLM completions with tier-based routing, Cloudflare AI Gateway telemetry, streaming, budget controls, and system-prompt binding. Depends on@latimer-woods-tech/errors and @latimer-woods-tech/logger.
Installation
Secrets required
Routing
Use
workbench for docs summaries, changelog drafts, issue triage, classification, and other low-risk outputs that are reviewed before use. Do not send secrets, customer PII, billing data, production ops requests, or final customer-facing answers through this tier.
API
complete(messages, env, opts?)
stream(messages, env, opts?)
Returns a ReadableStream from Anthropic. No failover on streams.
withSystem(system)
Returns a complete variant with the system prompt pre-bound.