pub struct EmbeddingConfig {
pub provider: String,
pub gemini_api_key: Option<String>,
pub openai_api_key: Option<String>,
pub embedding_model: Option<String>,
pub ollama_endpoint: Option<String>,
}Expand description
Configuration needed to create an embedding provider.
This struct extracts the embedding-related fields shared between CLI and server configurations, avoiding duplication of the factory logic.
Fields§
§provider: String§gemini_api_key: Option<String>§openai_api_key: Option<String>§embedding_model: Option<String>§ollama_endpoint: Option<String>Auto Trait Implementations§
impl Freeze for EmbeddingConfig
impl RefUnwindSafe for EmbeddingConfig
impl Send for EmbeddingConfig
impl Sync for EmbeddingConfig
impl Unpin for EmbeddingConfig
impl UnsafeUnpin for EmbeddingConfig
impl UnwindSafe for EmbeddingConfig
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