v1.0.0: New updates on SDK
Summary
We're pushing out some exciting new updates to Portkey's SDKs, APIs, and Configs.
Portkey's SDKs are upped to major version 1.0 bringing parity with the new OpenAI SDK structure and adding Portkey production features to it. We are also bringing native Langchain & Llamaindex integrations inside the SDK.
NOTE : This is a Breaking Change that Requires Migration.
Here's What's New:
- More extensible SDK that can be used with many more LLM providers
- Out-of-the-box support for streaming
- Completely follows OpenAI's SDK signature reducing your technical debt
- Native support for Langchain & Llamaindex within the SDK
- Support for the Portkey Feedback endpoint
- Support for Portkey Prompt Templates
- Older SDK versions to be deprecated soon
Configs 2.0
Here's What's New
- New concept of strategy instead of standalone mode. You can now build bespoke gateway strategies and nest them in a single config.
- You can also trigger a specific strategy on specific error codes.
- New concept of targets that replace options in the previous Config
- If you are adding virtual_key to the target array, you no longer need to add provider,Portkey will pick up the Provider directly from the Virtual Key!
- For Azure, only now pass the virtual_key - it takes care of all other Azure params like Deployment name, API version etc.
Check out the complete portkeys-december-migration for the complete list of changes usage details.