-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
通过更新apiBaseUrl避免国内API被墙 #249
Comments
我觉得不妥,这个url什么时候停了就全都受影响。 |
所以做成可配置参数呀。总比现在这么多国内的朋友都被强的好吧 |
我觉得还是用原生的API接口地址比较好,对于如何解决API地址无法访问并不是本项目的重点要关注的点,可以自行设置代理来解决该问题 |
比如做成可选参数,如果不配置,就是默认的原生API地址。如果配置,就自己写进去。这样既不影响已有的部署,也能有效解决被墙的问题 |
对的,有同样的需求 |
接口timeout的原因是被墙了? |
TS整体换成:
|
ChatGPTAPIOptions和ChatGPTUnofficialProxyAPI、chatConfig都有所更改 |
替换后还是经常出现“fetch failed”,如何处理? |
Chanzhaoyu
added a commit
that referenced
this issue
Mar 4, 2023
Chanzhaoyu
added a commit
that referenced
this issue
Mar 4, 2023
已添加 |
@Chanzhaoyu @pengmaochang 两位大大有解决办法不 |
我也出现这样的情况了,同求解决办法 |
感谢
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年03月06日 10:34 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [Chanzhaoyu/chatgpt-web] 通过更新apiBaseUrl避免国内API被墙 (Issue #249) |
@***@***.*** new chat就可以了。这个问题应该是因为更换代理后不支持以前对话导致的。所以请删除旧的对话,新搞一个对话窗口
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@pengmaochang 兄弟,接口调不通啦 |
suikodev
referenced
this issue
in AstraSurge/gpteams
Mar 27, 2023
* feat: 添加 OPENAI_API_BASE_URL 可选参数[#249] * fix: 生成的代码块不能复制的问题[#251][#260] * perf: 限制高分屏上的宽度[#257] * perf: 文字按单词换行[#215][#225] * perf: highlight.js 新语法警告 * fix: 移动端输入框不会被键盘弹起[#256] * chore: 更新文档 * chore: version 2.9.2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
从昨晚8点开始,GPT3.5的API被墙,导致国内各种项目都使用不了。但是更改service/src/chatgpt/index.ts文件的API参数,可以避免被墙。具体如下:
请问作者可以把这段写入源码吗?或者把这个参数作为docker 镜像可配置的参数,方便我们docker compose部署党。
感谢感谢~
The text was updated successfully, but these errors were encountered: