Available on all Portkey plans.
Creating Configs
Navigate to the ‘Configs’ page in the Portkey app and click ‘Create’ to start writing a new config.Using Configs
Configs are supported across all integrations.- Through the config parameter of the Portkey SDK client(Directly or via frameworks)
- Through the config headers in the OpenAI SDK
- Via the REST API through the
x-portkey-config
header
Applying Gateway Configs
Gateway configs allow you to unlock the gateway superpowers of Portkey. You can create a config in the UI and attach it’s config id in the OpenAI client.Note: If you have a default configuration set in the client, but also include a configuration in a specific request, the request-specific configuration will take precedence and replace the default config for that particular request.
You can also add the config JSON as a string instead of the slug.