AI & Machine Learning
Extension Inference
MANDATORY recipe for every Caffeine build that calls an LLM, chatbot, GPT, or ChatGPT **on Caffeine Inference** (no user-pasted OpenAI key). The ONLY supported path is the `caffeineai-inference-client` mops package with `Config.fromEnv<system>()`, which hands the canister a ready-to-use authenticated config — the app never asks for, stores, or returns a key. For interactive features that only signed-in users use, the browser can call the API itself with a short-lived key that `Ephemeral.Broker` mints. Hand-rolling `ic.http_request` to `inference.caffeine.ai` (or `api.openai.com`) is a FORBIDDEN anti-pattern. Load this skill whenever the user, spec, or any prior task wants an LLM in a Caffeine app — and BEFORE writing any code that talks to an LLM host. Use `extension-openai` only when the spec explicitly requires a user- or admin-pasted `sk-...` key against `api.openai.com`.
- Publisher / source
- caffeinelabs/skills (found on skills.sh)
- Upstream record
- caffeinelabs/skills
- Version
- Version 3
- Published
- Publication review
- Approved for publication
- Content fingerprint
393a74e832eb11da2370a83c4d9c5cfb96e7faeca93f49c9a7f06b23e2a8930b