Skip to main content

rig_core/providers/
hyperbolic.rs

1//! Hyperbolic's model identifiers.
2//!
3//! [`from_env`] and [`new`] build a client on the [`HYPERBOLIC`](crate::providers::openai::wire::HYPERBOLIC) dialect.
4//! Chat and image operations use model identifiers; speech uses a language tag
5//! such as `EN` in place of a model.
6//!
7//! ```no_run
8//! use rig_core::providers::hyperbolic;
9//!
10//! # fn run() -> Result<(), Box<dyn std::error::Error>> {
11//! let provider = hyperbolic::from_env()?;
12//! let llama_3_1_8b = provider.chat(hyperbolic::LLAMA_3_1_8B);
13//! # Ok(())
14//! # }
15//! ```
16
17/// Meta Llama 3.1b Instruct model with 8B parameters.
18pub const LLAMA_3_1_8B: &str = "meta-llama/Meta-Llama-3.1-8B-Instruct";
19/// Meta Llama 3.3b Instruct model with 70B parameters.
20pub const LLAMA_3_3_70B: &str = "meta-llama/Llama-3.3-70B-Instruct";
21/// Meta Llama 3.1b Instruct model with 70B parameters.
22pub const LLAMA_3_1_70B: &str = "meta-llama/Meta-Llama-3.1-70B-Instruct";
23/// Meta Llama 3 Instruct model with 70B parameters.
24pub const LLAMA_3_70B: &str = "meta-llama/Meta-Llama-3-70B-Instruct";
25/// Hermes 3 Instruct model with 70B parameters.
26pub const HERMES_3_70B: &str = "NousResearch/Hermes-3-Llama-3.1-70b";
27/// Deepseek v2.5 model.
28pub const DEEPSEEK_2_5: &str = "deepseek-ai/DeepSeek-V2.5";
29/// Qwen 2.5 model with 72B parameters.
30pub const QWEN_2_5_72B: &str = "Qwen/Qwen2.5-72B-Instruct";
31/// Meta Llama 3.2b Instruct model with 3B parameters.
32pub const LLAMA_3_2_3B: &str = "meta-llama/Llama-3.2-3B-Instruct";
33/// Qwen 2.5 Coder Instruct model with 32B parameters.
34pub const QWEN_2_5_CODER_32B: &str = "Qwen/Qwen2.5-Coder-32B-Instruct";
35/// Preview (latest) version of Qwen model with 32B parameters.
36pub const QWEN_QWQ_PREVIEW_32B: &str = "Qwen/QwQ-32B-Preview";
37/// Deepseek R1 Zero model.
38pub const DEEPSEEK_R1_ZERO: &str = "deepseek-ai/DeepSeek-R1-Zero";
39/// Deepseek R1 model.
40pub const DEEPSEEK_R1: &str = "deepseek-ai/DeepSeek-R1";
41
42pub const SDXL1_0_BASE: &str = "SDXL1.0-base";
43pub const SD2: &str = "SD2";
44pub const SD1_5: &str = "SD1.5";
45pub const SSD: &str = "SSD";
46pub const SDXL_TURBO: &str = "SDXL-turbo";
47pub const SDXL_CONTROLNET: &str = "SDXL-ControlNet";
48pub const SD1_5_CONTROLNET: &str = "SD1.5-ControlNet";
49
50/// The provider key: the dialect name, a reply's `Origin::provider` and
51/// the typed provider-options key.
52pub const PROVIDER_NAME: &str = "hyperbolic";
53
54crate::client::macros::openai_vendor!(crate::providers::openai::wire::HYPERBOLIC, "Hyperbolic");