Resolves where a request goes and how its response is shaped.
| provider | endpoint | auth | default model | envelope |
|---|---|---|---|---|
:typesafe (default) | https://api.typesafe.ai/v1/systemone | TYPESAFE_API_KEY | jev-latest | top level |
:cloudflare | .../accounts/{account_id}/ai/run/@cf/cloudflare/clef | CLOUDFLARE_API_TOKEN | @cf/cloudflare/clef | result |
:openrouter | https://openrouter.ai/api/alpha/decisions | OPENROUTER_API_KEY | typesafe/jev-1.13 | top level |
:compatible | url: (required) | optional | none | top level |
url: and model: options always win over provider defaults. Keys come from api_key:
or the provider's environment variable; env: can replace the environment in tests.
Summary
Functions
Extracts the System One body from a provider's response envelope.