Provider Slug.
anyscale
Obiguard SDK Integration with Anyscale
1. Install the Obiguard SDK
2. Initialize Obiguard with Anyscale Virtual Key
To use Anyscale with Obiguard, get your Anyscale API key from here, then add it to Obiguard to create the virtual key.3. Invoke Chat Completions with Anyscale
Directly Using Obiguard’s REST API
Alternatively, you can also directly call Anyscale models through Obiguard’s REST API - it works exactly the same as OpenAI API, with 2 differences:- You send your requests to Obiguard’s complete Gateway URL
https://gateway.obiguard.ai/v1/chat/completions
- You have to add Obiguard specific headers.
x-obiguard-api-key
for sending your Obiguard API or virtual Key
Using the OpenAI Python or Node SDKs for Anyscale
You can also use thebaseURL
param in the standard OpenAI SDKs and make calls to Obiguard + Anyscale directly from there. Like the Rest API example, you are only required to change the baseURL
and add defaultHeaders
to your instance. You can use the Obiguard SDK to make it simpler: