caelum0x 61dc220413 feat(relay): boot with any subset of provider keys, Groq free tier by default
Relay no longer aborts at startup when OPENAI_API_KEY (or any provider key)
is unset. Every provider credential in config/tensorzero.toml is now a
`dynamic::relay_*_api_key` slot (filled per request from the stored key or
the env var), and `[provider_types.*.defaults]` point shorthand models at the
same slots, so nothing reads `env::` at load time.

- Groq slot (GROQ_API_KEY) on the Providers page; `enabled` on each slot.
- Gateway refuses requests whose every route needs a disabled provider with
  HTTP 503 `provider_not_configured` naming the env var (before provider I/O).
- A shorthand whose provider is disabled resolves to the catalog model of the
  same id (Menivor sends `openai::llama-3.3-70b-versatile` for Groq models).
- Startup log lists enabled/disabled providers.
- Cost-first default: `functions.chat` and unpinned `passport_text` run on
  Groq llama-3.3-70b-versatile (OpenRouter failover); OpenAI/Anthropic are
  fallback variants. Catalog prices for the Groq models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 03:13:14 +03:00
..