Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New updates on the SDK #12

Merged
merged 52 commits into from
Dec 8, 2023

Conversation

noble-varghese
Copy link
Contributor

@noble-varghese noble-varghese commented Dec 1, 2023

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:

  1. More extensible SDK that can be used with many more LLM providers
  2. Out-of-the-box support for streaming
  3. Completely follows OpenAI's SDK signature reducing your technical debt
  4. Native support for Langchain & Llamaindex within the SDK
  5. Support for the Portkey Feedback endpoint
  6. Support for Portkey Prompt Templates
  7. Older SDK versions to be deprecated soon

Configs 2.0

Here's What's New

  1. New concept of strategy instead of standalone mode. You can now build bespoke gateway strategies and nest them in a single config.
  2. You can also trigger a specific strategy on specific error codes.
  3. New concept of targets that replace options in the previous Config
  4. 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!
  5. 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.

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Dec 1, 2023
@noble-varghese noble-varghese merged commit df889c8 into main Dec 8, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant