pub struct AnthropicModelMapping {
pub mappings: HashMap<String, String>,
}Expand description
Anthropic model mapping configuration.
Used to map OpenAI-compatible model ids (e.g. “claude-3-opus”) to the actual upstream Anthropic model id that should be used by the provider.
Fields§
§mappings: HashMap<String, String>Trait Implementations§
Source§impl Clone for AnthropicModelMapping
impl Clone for AnthropicModelMapping
Source§fn clone(&self) -> AnthropicModelMapping
fn clone(&self) -> AnthropicModelMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnthropicModelMapping
impl Debug for AnthropicModelMapping
Source§impl Default for AnthropicModelMapping
impl Default for AnthropicModelMapping
Source§fn default() -> AnthropicModelMapping
fn default() -> AnthropicModelMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnthropicModelMapping
impl<'de> Deserialize<'de> for AnthropicModelMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnthropicModelMapping
impl RefUnwindSafe for AnthropicModelMapping
impl Send for AnthropicModelMapping
impl Sync for AnthropicModelMapping
impl Unpin for AnthropicModelMapping
impl UnsafeUnpin for AnthropicModelMapping
impl UnwindSafe for AnthropicModelMapping
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