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

Hope to increase custom host function #3766

Open
jaychoubaby opened this issue Jun 21, 2024 · 1 comment
Open

Hope to increase custom host function #3766

jaychoubaby opened this issue Jun 21, 2024 · 1 comment

Comments

@jaychoubaby
Copy link

Sometimes we access OpenAI not necessarily through https://api.openai.com/. Due to network reasons, sometimes we will build a proxy domain for requests. We hope to support custom host functionality, not just for OpenAI, but also for other AI language models. In most cases, we use this method for proxy access. Thank you very much for your efforts and hope you can consider this feature, which is really important for users in China and some other countries.

@jaychoubaby
Copy link
Author

jaychoubaby commented Jun 21, 2024

When there is a network blockade, we cannot make requests through https://api.openai.com/v1/chat/completions. However, we have set up a domain proxy ourselves, and it is possible to access it normally through https://${my-domain}/v1/chat/completions. I noticed that the current code has hardcoded "https://api.openai.com/" as a fixed value, which prevents us from using spring-cloud-alibaba-ai properly.

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

No branches or pull requests

2 participants