OpenAi client, generated from the OpenAPI spec.
Usage
use OpenAiClient;
use *;
async
This example loads configuration from environment variables, specifically:
OPENAI_API_KEY
- Your OpenAI API key
Installation
Add this to your Cargo.toml:
[]
= "2"
The crate is named openai2
, but it is imported as openai
:
use openai;
Documentation
You can see working examples of every API call in the examples/
directory.
Contributing
Contributions are welcome!
Library created with Libninja.