Rust library for OpenAI API, providing async access to models, completions, and more.
# Cargo.toml
[dependencies]
async-openai = "0.39.0"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an OpenAI client and sends a completion request.
Add tokio as a dependency and use #[tokio::main].
Set OPENAI_API_KEY before running.
No dependency data recorded yet.