Skip to content
New issue

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

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

Already on GitHub? # to your account

OpenAI API compatibility for all providers #71

Open
kisamoto opened this issue Jun 14, 2024 · 0 comments
Open

OpenAI API compatibility for all providers #71

kisamoto opened this issue Jun 14, 2024 · 0 comments

Comments

@kisamoto
Copy link

Currently this API purely acts a proxy so anybody willing to integrate with different providers needs to also implement an SDK for each provider in their code (my use case).

A huge appealing factor would be if we could use only the OpenAI SDK and purely by changing the URLs when initializing a new client get access to the different providers. Side note, it would also play nicely with #40 as the OpenAI client would handle those errors.

Perhaps each provider could be under a separate compatability URL e.g. http://localhost:8002/api/compat/openai/providers/{{ provider_slug }}/

Ollama implemented something similar recently via a middleware which maps OpenAI API objects to their own internal representation if you need some inspiration.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant