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§
- chatgpt_
models - The model slugs a signed-in ChatGPT account may use, in backend order.
- env
- Reads Unicode provider configuration values from the process environment.
- signed_
in - A catalog model served with a signed-in credential that each request reads afresh, so a long session outlives its access token. ChatGPT’s and Copilot’s authenticators both sign in this way.