Set up Ona Agent to use Portkey as your LLM Gateway Provider
PORTKEY_GATEWAY_URL
should be https://api.portkey.ai/v1/messages or the url of a self-hosted solution.PLACEHOLDER
can be any non-empty value (like gitpod
) as this is actually not used for the integration.
The API key is either managed by Portkey or passed as a header. We need to pass a non-empty value here otherwise the command would be invalid.PORTKEY_CONFIG_ID
is the ID of the configuration that you set up earlier (it looks like pc-xxx
).PORTKEY_API_KEY
: is Portkey’s API KeyLLM_API_KEY
: is the API key of the integration that you want Portkey to talk to; for example an anthropic API KeyPORTKEY_API_KEY
: is Portkey’s API KeyPROVIDER
: is the name of the LLM provider to be used, for example antrophicset-header
command to create or overwrite headers.remove-header
command to delete a header.list-headers
command to list the headers enabled on the integration.