Maps provider IDs to canonical base URLs for inference APIs.
// Source: https://github.com/fathah/hermes-desktop | License: MIT | Copyright 2026 github.com/fathah // Provided via justclaw.it.com; keep this notice with the code. /** * Canonical inference base URLs for built-in providers — mirrors * hermes-agent's `PROVIDER_REGISTRY` defaults. * * Lives in its own module (not in `model-discovery.ts` or `config.ts`) * to avoid a circular import: `model-discovery` already depends on * `config` for `readEnv`, and `config` needs this lookup for * `setModelConfig` to write the right `base_url:` when the user picks a * built-in provider entry that doesn't carry a baseUrl of its own. * * Only providers whose `/v1/chat/completions` endpoint we trust are * listed; anything else (`custom`, `auto`, OAuth-only providers, * user-defined entries) falls ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key