Trait async_openai_wasm::config::Config
source · pub trait Config: 'static + Debug {
// Required methods
fn headers(&self) -> HeaderMap;
fn url(&self, path: &str) -> String;
fn query(&self) -> Vec<(&str, &str)>;
fn api_base(&self) -> &str;
fn api_key(&self) -> &Secret<String>;
}
Expand description
crate::Client relies on this for every API call on OpenAI or Azure OpenAI service