rig::providers

Module openai

source
Expand description

OpenAI API client and Rig integration

§Example

use rig::providers::openai;

let client = openai::Client::new("YOUR_API_KEY");

let gpt4o = client.completion_model(openai::GPT_4O);

Structs§

Constants§