Provider Slug:
oracleUsing Oracle OCI Generative AI with the AI Gateway
The AI Gateway provides a consistent API to interact with models from various providers. To integrate Oracle OCI Generative AI with the AI Gateway:1. Install the OpenAI SDK
- NodeJS
- Python
2. Initialize the AI Gateway with Oracle OCI
Oracle OCI uses API key-based authentication with request signing. You’ll need the following credentials from your OCI console:
Add these credentials to Model Catalog to create an Oracle AI Provider.
3. Invoke Chat Completions
- cURL
Supported Models
Oracle OCI Generative AI supports various foundation models including:- Cohere Models:
cohere.command-r-plus,cohere.command-r,cohere.command - Meta Llama Models:
meta.llama-3.1-405b-instruct,meta.llama-3.1-70b-instruct
Configuration Options
You can specify the API version using theoracleApiVersion parameter (defaults to 20231130).

