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

🚀 功能改善 新增ChatGPT API Host自定义 #155

Open
ZhangChunXian opened this issue Jul 24, 2023 · 1 comment
Open

🚀 功能改善 新增ChatGPT API Host自定义 #155

ZhangChunXian opened this issue Jul 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ZhangChunXian
Copy link

功能改善建议 🚀

我的chatgpt API购买自国内第三方网站, 在使用API Key时需要走的OpenAI Host(Host address for connecting to the OpenAI API)并不是默认的https://api.openai.com/v1/chat/completions, 而是我买的第三方网站提供的Host.

您的建议是什么? 🤔

我希望在网站里填写OpenAI API KEY后可以新增自定义OpenAI Host, 请求的时候走指定的转发地址.
这个功能在一些需要填写OpenAI API KEY的第三方客户端里面有.
可以参考开源项目SpeechGPT(https://speechgpt.app/) 在设置里面有自定义OpenAI Host的选项. 默认的host是api.openai.com

@ZhangChunXian ZhangChunXian added the enhancement New feature or request label Jul 24, 2023
@alinzhou20
Copy link

修改此处哇

const res = await fetch('https://api.openai.com/v1/chat/completions', {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants