Skip to content

ConfigureOptions

optional allowDirectOpenAIEndpoint?: boolean


optional modelProfiles?: Record<string, string[]>

Named model profiles: a profile name mapped to an ordered list of target ids (openai:gpt-5.2, or an on-device provider’s id). A request opts in with TaskRequest.modelProfile; routing then stays within that list, in that order after placement constraints. Omitted, every request routes within the built-in auto profile — every registered target — and naming any other profile fails the request.

auto cannot be redefined, and a profile must list at least one target, each once; configure() rejects a configuration that breaks either rule.


optional onnx?: OnnxProviderBootstrapOptions

Web only; native registers its own on-device provider.


optional openAI?: OpenAIProviderBootstrapOptions


optional systemModel?: SystemModelProviderBootstrapOptions

Web only; native registers its own on-device provider.