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

Support for different URL scheme, port. #74

Open
fdstevex opened this issue Jun 9, 2023 · 1 comment
Open

Support for different URL scheme, port. #74

fdstevex opened this issue Jun 9, 2023 · 1 comment

Comments

@fdstevex
Copy link

fdstevex commented Jun 9, 2023

The host that you supply to OpenAI.Configuration is converted into a URL by buildURL, which has the scheme hard-coded to https.

With projects like GPT4All allowing users to run a local server that provides an OpenAI-style API to a local engine, it would be useful to be able to either override the scheme and port, or supply the first part of the URL entirely ("http://localhost:4891").

@fdstevex
Copy link
Author

The OpenAI SDK lets you specify this as 'basePath':

configuration.basePath = "https://api.openai.com/v1";

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

1 participant