Module huggingface

Module huggingface 

Source
Expand description

Create a new completion model with the given name

§Example

use rig::providers::huggingface::{client::self, completion::self}

// Initialize the Huggingface client
let client = client::Client::new("your-huggingface-api-key");

let completion_model = client.completion_model(completion::GEMMA_2);

Re-exports§

pub use client::Client;
pub use client::ClientBuilder;
pub use client::SubProvider;
pub use image_generation::image_generation_models::*;image

Modules§

client
completion
image_generationimage
streaming
transcription