rig/providers/huggingface/
mod.rs

1//! Create a new completion model with the given name
2//!
3//! # Example
4//! ```
5//! use rig::providers::huggingface::{client::self, completion::self}
6//!
7//! // Initialize the Huggingface client
8//! let client = client::Client::new("your-huggingface-api-key");
9//!
10//! let completion_model = client.completion_model(completion::GEMMA_2);
11//! ```
12
13pub mod client;
14pub mod completion;
15
16#[cfg(feature = "image")]
17#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
18pub mod image_generation;
19pub mod streaming;
20pub mod transcription;
21
22pub use client::{Client, ClientBuilder, SubProvider};
23#[cfg(feature = "image")]
24pub use image_generation::image_generation_models::*;