pub struct RemoteModel {
pub endpoint: String,
pub model: String,
pub dimension: u32,
}Expand description
The remote slot’s model.
Fields§
§endpoint: StringThe endpoint’s base URL; requests go to <endpoint>/v1/embeddings.
model: StringThe model’s name, as the endpoint knows it.
dimension: u32Output dimension; longer vectors are cut to it (MRL) and normalized again.
Trait Implementations§
Source§impl Clone for RemoteModel
impl Clone for RemoteModel
Source§impl Debug for RemoteModel
impl Debug for RemoteModel
Source§impl<'de> Deserialize<'de> for RemoteModel
impl<'de> Deserialize<'de> for RemoteModel
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
impl Eq for RemoteModel
Source§impl PartialEq for RemoteModel
impl PartialEq for RemoteModel
Source§impl Serialize for RemoteModel
impl Serialize for RemoteModel
impl StructuralPartialEq for RemoteModel
Auto Trait Implementations§
impl Freeze for RemoteModel
impl RefUnwindSafe for RemoteModel
impl Send for RemoteModel
impl Sync for RemoteModel
impl Unpin for RemoteModel
impl UnsafeUnpin for RemoteModel
impl UnwindSafe for RemoteModel
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