Expand description
Provider clients and environment configuration helpers. A provider’s
client (such as crate::providers::openai::OpenAI) puts its
configuration on a transport and builds the models it serves; each is
re-exported from its provider module.
use rig_core::client::env;
let credential = env::required("OPENAI_API_KEY")?;Re-exports§
pub use env::EnvError;
Modules§
- env
- Reads Unicode provider configuration values from the process environment.