Using the ai api of OpenAI
, Anthropic
, Groq
by Portkey-AI/gateway to summary the news.
There are two methods to use it. One is only for openai
, and second supports a lot of ai api by gateway which is recommended
because supporting those difference api is not the goal of this project.
This method is only for openai as a previous version of this extension. You don't need to do anything after upgrading this extension if you are using openai before.
This method is using Portkey-AI/gateway to support a lot of ai api. But you need to deploy a service to achieve this.
You could deploy to Cloudflare Workers or running docker container.
https://user-images.githubusercontent.com/6359152/232393261-0874fd35-563b-43ad-846c-f4bb48aef143.mp4