pub struct KoboldClient { /* private fields */ }
Implementations§
Source§impl KoboldClient
impl KoboldClient
pub fn new(api_url: &str, api_version: APIVersion) -> Self
pub async fn get_version(&self) -> Result<String>
pub async fn get_model(&self) -> Result<Option<Model>>
pub async fn load_model(&self, model: Model, gpu_layers: Vec<i32>) -> Result<()>
pub async fn generate( &self, prompt: &str, settings: GenerationSettings, ) -> Result<Vec<String>>
Auto Trait Implementations§
impl Freeze for KoboldClient
impl !RefUnwindSafe for KoboldClient
impl Send for KoboldClient
impl Sync for KoboldClient
impl Unpin for KoboldClient
impl !UnwindSafe for KoboldClient
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