Skip to content

Add basePath configuration option to support OpenAI mirror #264

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

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

try-to-fly
Copy link
Contributor

This pull request is aimed at adding a new configuration option, basePath, to the project. This is motivated by the need to support an OpenAI mirror site in China. (such as https://api2d.com/)

The basePath will allow users in China to conveniently redirect their requests to a local mirror, thus significantly improving access speed and reliability.

Please consider integrating this change to enhance the user experience for a large number of users in China.

@CLAassistant
Copy link

CLAassistant commented Jun 6, 2023

CLA assistant check
All committers have signed the CLA.

@HenryHengZJ
Copy link
Contributor

@try-to-fly can you add the same to OpenAI node as well?

@try-to-fly
Copy link
Contributor Author

@try-to-fly can you add the same to OpenAI node as well?

I have also added the basePath setting to the OpenAI_LLMs node。

@HenryHengZJ
Copy link
Contributor

thanks @try-to-fly!

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

Successfully merging this pull request may close these issues.

3 participants