mirror of
https://github.com/mii443/rust-genai.git
synced 2025-08-23 00:35:33 +00:00
13 lines
242 B
Rust
13 lines
242 B
Rust
use genai::OpenAIClient;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
// create new client
|
|
let api_key = std::env::var("OPENAI_API_KEY")?;
|
|
let oa_client = OpenAIClient::from_api_key(api_key);
|
|
|
|
//
|
|
|
|
Ok(())
|
|
}
|