Function: parseSlashModelId()
parseSlashModelId(
id):ParsedModelId
Defined in: packages/core/src/providers/registry.ts:191
Split an id written provider/model (openai/gpt-5, ollama/llama3.2),
the form gateways such as the Claude Code proxy take, into the same parts
parseModelId returns.
The slash separates only when the prefix names a known provider, because
OpenRouter's own ids contain slashes (anthropic/claude-sonnet-4); any
other id goes through parseModelId.
Parameters
id
string