Guides
AI Gateway
AI Gateway is a service that let’s you use with different LLM models from a single endpoint
Some notable AI Gateway are:
For this guide, we’ll use Portkey as our AI Gateway.
Setup Portkey
You can setup Portkey locally, or use the hosted version at portkey.ai. Once you have Portkey setup, continue with the following steps.
Add Portkey to your project
Using Portkey to call OpenAI models
Using Portkey to call any LLM model with App Config
To be able to easily swap different LLM models in your application, you can use App Config along with Portkey. This will allow you to use any LLM model without changing your code and just updating the AppConfig.
Using AppConfig to swap LLM models allows you to easily run experiments with different variations of your applications locally, or run A/B tests in production without changing your code.