Skip to main content

fetch

Function fetch 

Source
pub fn fetch(prompt: &str, model: &str, max_tokens: u32) -> Result<String>
Available on crate feature live only.
Expand description

OpenAI with OPENAI_API_KEY and optional OPENAI_BASE_URL (0.3 behaviour).