Skip to content

Commit ebeeb88

Browse files
authored
Update README.md
1 parent d944024 commit ebeeb88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
很多人想要Demo网站中自己输入API-KEY的功能,已经把代码加上了,取消index.php的注释就行了。为了美观可以把上面的“连续对话”部分注释掉,要不然手机访问不是很友好。
1717

1818
在国内访问OpenAI的新接口会提示超时,如果你本地有HTTP-PROXY,可以把stream.php里面注释掉的“curl_setopt($ch, CURLOPT_PROXY, " http://127.0.0.1:1081 ");”修改一下,这样就可以通过你本地的代理访问openai的接口。
19+
1920
如果你自己没代理,可以使用热心网友提供的反代地址,把“curl_setopt($ch, CURLOPT_URL, ' https://api.openai.com/v1/chat/completions ');”这行里面的网址改成' https://openai.1rmb.tk/v1/chat/completions ',不确定那个什么时候会失效,也可以进群再找其他群友求一个。不过反代的方式访问速度比较慢,最好还是自己买个海外服务器吧,每个月不到20元的有的是。
2021

22+
如果你实在不会买海外服务器,那你有自己的域名吗?有的话还可以用cf worker自建反代,具体可以参考这篇文章:https://github.com/noobnooc/noobnooc/discussions/9
23+
2124
*测试网址:http://mm1.ltd*
2225

2326
![微信截图_20230312112146](https://user-images.githubusercontent.com/5563148/224522389-f60e3047-c0e6-49cd-bee7-80feaf2c86a4.png)

0 commit comments

Comments
 (0)