INNER CODE UNIT · Rust
to_string
lanterndata/lantern · lantern_cli/src/embeddings/core/mod.rs:52
fn to_string(&self) -> String {
match self {
Runtime::Ort => "ort".to_owned(),
Runtime::OpenAi => "openai".to_owned(),
Runtime::Cohere => "cohere".to_owned(),
}
}
}
pub enum EmbeddingRuntime<'a> {
Cohere(cohere_runtime::CohereRuntime<'a>),
OpenAi(openai_runtime::OpenAiRuntime<'a>),
Ort(ort_runtime::OrtRuntime<'a>),
}
impl<'a> EmbeddingRuntime<'a> {
pub fn new(
runtime: &Runtime,