Deterministic core
Start with a fake model adapter so request validation, response schemas, timeouts, failures, and redaction can be tested without network calls or usage charges.
API Camp · LLM companion tutorial
A guided build brief for placing an LLM behind a small typed API while keeping the default tests deterministic, offline, and free of credentials.
Start with a fake model adapter so request validation, response schemas, timeouts, failures, and redaction can be tested without network calls or usage charges.
Treat model responses as untrusted data: validate structure, constrain size, escape rendered content, and keep generated actions behind explicit approval.
Add a provider only after the local contract passes. Load credentials from runtime secrets, set cost and timeout limits, and never put keys in source, URLs, logs, or browser storage.
Start here
Tutorial contents
Review the release