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

fix: domain like https://domain not allow #388

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chsword
Copy link
Contributor

@chsword chsword commented Dec 10, 2024

the following use case where

var client = new OpenAIClient(new OpenAIAuthentication(key), new OpenAIClientSettings("https://domain"));

does not work, while both domain and http://domain work fine. This does not reflect the consistency of the API.

After modification, parameters like

  • http://domain.xxx
  • domain.xxx
  • https://domain.xxx

are both allowed.

the following use case where
```
var client = new OpenAIClient(new OpenAIAuthentication(key), new OpenAIClientSettings("https://domain"));
```
does not work, while both 'domain' and 'http://domain' work fine. This does not reflect the consistency of the API.
@StephenHodgson
Copy link
Member

@chsword Thanks for this, I'll try to get it in my next release

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

Successfully merging this pull request may close these issues.

2 participants