Interface: OpenRouterProviderPreferences
@providerprotocol/ai / openrouter / OpenRouterProviderPreferences
Interface: OpenRouterProviderPreferences
Section titled “Interface: OpenRouterProviderPreferences”Defined in: src/providers/openrouter/types.ts:299
Provider routing preferences for OpenRouter.
Controls how OpenRouter selects and routes requests to upstream providers.
Properties
Section titled “Properties”allow_fallbacks?
Section titled “allow_fallbacks?”
optionalallow_fallbacks:boolean
Defined in: src/providers/openrouter/types.ts:301
Allow fallback to other providers if the primary is unavailable.
data_collection?
Section titled “data_collection?”
optionaldata_collection:"allow"|"deny"
Defined in: src/providers/openrouter/types.ts:305
Data collection policy: ‘allow’ or ‘deny’.
ignore?
Section titled “ignore?”
optionalignore:string[]
Defined in: src/providers/openrouter/types.ts:309
List of provider slugs to exclude from routing.
order?
Section titled “order?”
optionalorder:string[]
Defined in: src/providers/openrouter/types.ts:307
Ordered list of preferred provider slugs.
quantizations?
Section titled “quantizations?”
optionalquantizations:string[]
Defined in: src/providers/openrouter/types.ts:311
Preferred quantization levels (e.g., ‘fp16’, ‘int8’).
require_parameters?
Section titled “require_parameters?”
optionalrequire_parameters:boolean
Defined in: src/providers/openrouter/types.ts:303
Require that the provider supports all specified parameters.