This Integration is DEPRECATED
Click here to check out the latest integration of Autogen with Portkey

Quick Start Integration
Autogen supports a concept ofconfig\_list which allows definitions of the LLM provider and model to be used. Portkey seamlessly integrates into the Autogen framework through a custom config we create.
Example using minimal configuration
base_url to Portkey’s AI Gateway and then added default_headers to enable Portkey specific features.
When we execute this script, it would yield the same results as without Portkey, but every request can now be inspected in the Portkey Analytics & Logs UI - including token, cost, accuracy calculations.

Using 100+ models in Autogen through Portkey
Since Portkey seamlessly connects to 150+ models across providers, you can easily connect any of these to now run with Autogen. Let’s see an example using Mistral-7B on Anyscale running with Autogen seamlessly:Using Model Catalog
Model Catalog in Portkey lets you manage provider credentials centrally. Add your Anyscale API key to Model Catalog and use the AI Provider slug in your config.Using Configs
Configs in Portkey unlock advanced management and routing functionality including load balancing, fallbacks, canary testing, switching models and more. You can use Portkey configs in Autogen like this:Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us

