Portkey Rust SDK
The portkey crate is a lightweight wrapper around async-openai designed to provide a Portkey-compatible OpenAI client. It simplifies the process of configuring custom clients to work seamlessly with the Portkey AI API.
Features
- Easy initialization with API and virtual keys.
- Fully compatible with
async-openai. - Pre-configured headers for Portkey's API requirements.
Future Plans
Currently, this SDK serves as a simple wrapper around async-openai, making it Portkey-compatible. However, the goal is to expand it in the future to fully support the entire Portkey API, offering advanced functionality for developers.
Installation
Install the crate using Cargo:
Usage
Here's how to use the portkey client:
use Client;
async
License
This project is licensed under the MIT License. See the LICENSE file for details.