rig-core 0.44.0

An opinionated library for building LLM powered applications.
Documentation
//! Venice model identifiers and request parameters.
//!
//! [`from_env`] and [`new`] build a client on the [`VENICE`](crate::providers::openai::wire::VENICE) dialect.
//! Its `venice_parameters` request block and the reply's cost and echoed
//! parameters are typed in [`extension`].
//!
//! ```no_run
//! use rig_core::providers::venice;
//! let model = venice::from_env()?.chat(venice::QWEN3_5_9B);
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```

/// Venice's API root, and the default base URL of
/// [`openai::wire::VENICE`](crate::providers::openai::wire::VENICE).
pub const VENICE_API_BASE_URL: &str = "https://api.venice.ai/api/v1";

#[cfg(feature = "audio")]
pub mod audio_generation;
pub mod completion;
pub mod embedding;
pub mod extension;
#[cfg(feature = "image")]
pub mod image_generation;
pub mod transcription;

#[cfg(feature = "audio")]
pub use audio_generation::*;
pub use completion::*;
pub use embedding::*;
#[cfg(feature = "image")]
pub use image_generation::*;
pub use transcription::*;

/// The provider key: the dialect name, a reply's `Origin::provider` and
/// the typed provider-options key.
pub const PROVIDER_NAME: &str = "venice";

crate::client::macros::openai_vendor!(crate::providers::openai::wire::VENICE, "Venice");