pub struct OpenAICompatibleEmbedding { /* private fields */ }Expand description
An OpenAI-compatible embedding client that works with both OpenAI and vLLM.
Implementations§
Source§impl OpenAICompatibleEmbedding
impl OpenAICompatibleEmbedding
pub fn new(config: EmbeddingConfig) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenAICompatibleEmbedding
impl !RefUnwindSafe for OpenAICompatibleEmbedding
impl Send for OpenAICompatibleEmbedding
impl Sync for OpenAICompatibleEmbedding
impl Unpin for OpenAICompatibleEmbedding
impl UnsafeUnpin for OpenAICompatibleEmbedding
impl !UnwindSafe for OpenAICompatibleEmbedding
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