pub struct ProductMeta {
pub extra_headers: HashMap<String, Vec<(String, String)>>,
}Expand description
Product-specific metadata: extra HTTP headers for a subset of providers.
Models.dev does not know oxicode-specific HTTP headers (e.g. HTTP-Referer
for OpenRouter). These are maintained in data/catalog/product-meta.toml.
Fields§
§extra_headers: HashMap<String, Vec<(String, String)>>Extra HTTP headers keyed by models.dev provider id.
Implementations§
Source§impl ProductMeta
impl ProductMeta
Sourcepub fn builtin() -> ProductMeta
pub fn builtin() -> ProductMeta
Parse from the built-in product-meta.toml.
Trait Implementations§
Source§impl Default for ProductMeta
impl Default for ProductMeta
Source§fn default() -> ProductMeta
fn default() -> ProductMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProductMeta
impl RefUnwindSafe for ProductMeta
impl Send for ProductMeta
impl Sync for ProductMeta
impl Unpin for ProductMeta
impl UnsafeUnpin for ProductMeta
impl UnwindSafe for ProductMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more