-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Refactor API providers #726
Labels
Comments
sashabaranov
added
enhancement
New feature or request
help wanted
Extra attention is needed
labels
Apr 24, 2024
your kind, Cloudflare how to do ? |
@qingdi pretty much the same! config := openai.DefaultConfigWithAPIProvider(
openai.CloudflareProviderConfig(...),
)
client := openai.NewClientWithConfig(config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a growing number of different API providers: OpenAI, Azure, Cloudflare Getaway. At the same time other tools keep adding their OpenAI-compatible APIs (e.g. Ollama).
Considering #693, here's a sketch of how we can add new API providers painlessly:
client usage:
The text was updated successfully, but these errors were encountered: