libopenai - Rust client to interact with OpenAI's API
Rust client for OpenAI's API, written with tokio and reqwest
How to use
To add libopenai
to your project, you just need to run the following command on your project's main foler:
Example
use *;
async
Features
- Text generation
- Embeddings
- Moderations
- Files and fine-tuning
- Image generation with automatic conversion to desired formats
- Audio-to-text conversions
- Support for streaming
Cargo features
Currently, the only feature available is tracing, which enables some minor logging