llm_client 0.0.7

llm_client: The easiest Rust interface for local LLMs
Documentation
use super::*;
use subject_of_text::ClassifySubjectOfText;

pub mod hierarchical_classification;
pub mod subject_of_text;

pub struct Classify {
    backend: std::sync::Arc<LlmBackend>,
}

impl Classify {
    pub fn new(backend: std::sync::Arc<LlmBackend>) -> Self {
        Self { backend }
    }

    pub fn subject_of_text<T: AsRef<str>>(self, content: T) -> ClassifySubjectOfText {
        ClassifySubjectOfText::new(CompletionRequest::new(self.backend), content)
    }
}