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

How to customize API BaseURL? #5

Closed
WalterZou opened this issue Sep 13, 2023 · 7 comments
Closed

How to customize API BaseURL? #5

WalterZou opened this issue Sep 13, 2023 · 7 comments

Comments

@WalterZou
Copy link

Sometimes we don't directly use OpenAI's API, but instead wrap it with a proxy for usage. How to configure the BaseURL of the API?

@btfranklin
Copy link
Owner

This is a feature that I'm actively working on right now. My goal is to add very easy pass-through support for exactly this kind of proxy, where both the proxy and the "real" client can be written using CleverBird.

@WalterZou
Copy link
Author

Cool, looking forward to it

@iTarek
Copy link

iTarek commented Sep 18, 2023

Can you also add support for Azure OpenAI? please.

@btfranklin
Copy link
Owner

@iTarek That is a very different request than a simple change of URL, as the Azure OpenAI API spec can theoretically change independent of the "core" OpenAI one, which would change the backing implementation. Could you please file that as a new issue so I can design and investigate that by itself?

@btfranklin
Copy link
Owner

Realistically, I'm not planning to spend much more time adding features to CleverBird, but I'd be happy to consider a pull request that implements this.

@ronaldmannak
Copy link
Contributor

I created a PR to support custom URLs. I'm using it myself for my Server-side Swift OpenAI proxy (https://github.com/ronaldmannak/SwiftOpenAIProxy)

@btfranklin
Copy link
Owner

This change from @ronaldmannak has been merged. Thanks for the contribution!

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

No branches or pull requests

4 participants