Skip to main content
This feature is available on all Portkey plans.
This uses the same techniques as load balancing but to achieve a different outcome.

Example: Test Llama2 on 5% of the traffic

Letโ€™s take an example where we want to introduce llama2 in our systems (through Anyscale) but weโ€™re not sure of the impact. We can create a config specifically for this use case to test llama2 in production. The config object would look like this
Here we are telling the gateway to send 5% of the traffic to anyscaleโ€™s hosted llama2-70b model. Portkey handles all the request transforms to make sure you donโ€™t have to change your code. You can now use this config like this in your requests. Once data starts flowing in, we can use Portkeyโ€™s analytics dashboards to see the impact of the new model on cost, latency, errors and feedback.
Last modified on April 2, 2026