Skip to content

CUSTOM_PROVIDER_PREFIX

const CUSTOM_PROVIDER_PREFIX: "custom:" = "custom:"

Defined in: lib/providers/types.ts:47

User-added providers get ids of the form custom:<wire>:<random>, where <wire> is the wire protocol (“openai” | “ollama” | “anthropic”). Encoding the protocol in the id lets synchronous call sites (capability defaults, factory) resolve it without an async config lookup. The protocol is immutable per provider — a different protocol is a different provider.