ProviderPreferences

class ProviderPreferences(val order: List<String>? = null, val allowFallbacks: Boolean? = null, val requireParameters: Boolean? = null, val dataCollection: String? = null, val only: List<String>? = null, val ignore: List<String>? = null, val quantizations: List<String>? = null, val sort: String? = null, val maxPrice: Map<String, String>? = null)(source)

Constructors

Link copied to clipboard
constructor(order: List<String>? = null, allowFallbacks: Boolean? = null, requireParameters: Boolean? = null, dataCollection: String? = null, only: List<String>? = null, ignore: List<String>? = null, quantizations: List<String>? = null, sort: String? = null, maxPrice: Map<String, String>? = null)

Properties

Link copied to clipboard

Whether to allow backup providers when the primary is unavailable

Link copied to clipboard

allow Control whether to use providers that may store data

Link copied to clipboard

List of provider slugs to skip for this request

Link copied to clipboard

The maximum pricing you want to pay for this request

Link copied to clipboard

List of provider slugs to allow for this request

Link copied to clipboard

List of provider slugs to try in order (e.g. "anthropic", "openai")

Link copied to clipboard

List of quantization levels to filter by (e.g. "int4", "int8")

Link copied to clipboard

Only use providers that support all parameters in your request

Link copied to clipboard
val sort: String?

Sort providers by price or throughput. (e.g. "price" or "throughput")