Skip to content

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

Merged
StephenHodgson merged 1 commit intoRageAgainstThePixel:developmentfrom
yunzai-cc:main
Jan 11, 2025
Merged

fix: domain like https://domain not allow#388
StephenHodgson merged 1 commit intoRageAgainstThePixel:developmentfrom
yunzai-cc:main

Conversation

@chsword
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@StephenHodgson StephenHodgson changed the base branch from main to development January 11, 2025 16:50
@StephenHodgson StephenHodgson merged commit b659965 into RageAgainstThePixel:development Jan 11, 2025
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