pub struct ProviderConfig {
pub vendor: Option<String>,
pub formats: Option<Formats>,
pub base_url: Option<String>,
pub key: Option<String>,
pub auth: Option<Auth>,
pub proxy: Option<Proxy>,
}Expand description
One provider: a vendor, explicit formats, or a vendor with some of its settings replaced.
Fields§
§vendor: Option<String>A vendor: openai, anthropic, gemini, groq, …
formats: Option<Formats>Its format, or several: by name, or a table of each format’s base URL by its name, which a vendor whose formats sit at different URLs (Gemini) needs to be moved; a vendor’s are every format it speaks compiled in, each at its own URL.
base_url: Option<String>The base URL its formats share, its API’s, in place of a table’s
or its vendor’s; a format of whole paths, such as passthrough,
takes its origin.
key: Option<String>Its key, literal or env:NAME, sent as its formats expect; a
vendor’s is env:<VENDOR>_API_KEY.
auth: Option<Auth>Its credentials as one header, in place of key. A provider with
neither, and no vendor key, passes on the client’s.
proxy: Option<Proxy>Its proxy, in place of network’s: a URL, literal or env:NAME, or
false for none.