-
Notifications
You must be signed in to change notification settings - Fork 1k
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
支持http代理地址 #8
base: main
Are you sure you want to change the base?
支持http代理地址 #8
Conversation
只要你网络能直接调通openai接口,这代理没啥用,直接那那行代码去掉就行或者自己写个重载函数也行 |
我打算部署到国内😅 |
各位代理可以按照以下修改:gpt.go |
2023/10/28 19:29:00 扫码成功,请在手机上确认登录 goroutine 42 [running]: 你好,这个是什么意思呢 |
2023/10/28 19:35:43 Received User Meeee Text Msg : 哈哈 你好,这个接口目前不可以使用吗 |
我想问问目前解决了吗 我遇到了这个问题 |
你可以在腾讯云,选择一个节点在国外的云函数,做个代理
诚南花已开
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年10月28日(星期六) 晚上9:41
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [djun/wechatbot] 支持http代理地址 (PR #8)
我打算部署到国内😅
我想问问目前解决了吗 我遇到了这个问题
request gtp json string : {"model":"text-davinci-003","prompt":"哈喽","max_tokens":2048,"temperature":0.7,"top_p":1,"frequency_penalty":0,"presence_penalty":0}
2023/10/28 21:33:03 gtp request error: Post "https://api.openai.com/v1/completions": read tcp 192.168.10.17:41925->104.18.7.192:443: wsarecv: An existing connection was forcibly closed by the remote host.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
proxyURL, _ := url.Parse("http://127.0.0.1:7890/") |
目前是报这个错误 是代理的问题吗 |
可以用的,需要科学上网,才能访问到openai
诚南花已开
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年10月28日(星期六) 晚上7:37
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [djun/wechatbot] 支持http代理地址 (PR #8)
2023/10/28 19:35:43 Received User Meeee Text Msg : 哈哈
2023/10/28 19:35:43 request gtp json string : {"model":"text-davinci-003","prompt":"哈哈","max_tokens":2048,"temperature":0.7,"top_p":1,"frequency_penalty":0,"presence_penalty":0}
2023/10/28 19:35:43 gtp request error: Post "https://api.openai.com/v1/completions": read tcp 192.168.10.17:9455->104.18.7.192:443: wsarecv: An existing connection was forcibly closed by the remote host.
2023/10/28 19:35:44 RetCode:0 Selector:2
2023/10/28 19:36:09 RetCode:0 Selector:0
2023/10/28 19:36:10 RetCode:0 Selector:2
2023/10/28 19:36:10 hadler Received msg : 你说什么
2023/10/28 19:36:10 Received User Meeee Text Msg : 你说什么
2023/10/28 19:36:10 request gtp json string : {"model":"text-davinci-003","prompt":"你说什么","max_tokens":2048,"temperature":0.7,"top_p":1,"frequency_penalty":0,"presence_penalty":0}
2023/10/28 19:36:11 gtp request error: Post "https://api.openai.com/v1/completions": read tcp 192.168.10.17:9508->104.18.6.192:443: wsarecv: An existing connection was forcibly closed by the remote host.
2023/10/28 19:36:11 RetCode:0 Selector:2
你好,这个接口目前不可以使用吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我的网页时可以访问openai的呢 |
用postman 调一下openai的接口,能通,则是你的服务调用有些问题。部署在腾讯云上,一般响应时间比较长
诚南花已开
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年10月28日(星期六) 晚上9:53
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [djun/wechatbot] 支持http代理地址 (PR #8)
可以用的,需要科学上网,才能访问到openai 诚南花已开 @.***
…
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年10月28日(星期六) 晚上7:37 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [djun/wechatbot] 支持http代理地址 (PR #8) 2023/10/28 19:35:43 Received User Meeee Text Msg : 哈哈 2023/10/28 19:35:43 request gtp json string : {"model":"text-davinci-003","prompt":"哈哈","max_tokens":2048,"temperature":0.7,"top_p":1,"frequency_penalty":0,"presence_penalty":0} 2023/10/28 19:35:43 gtp request error: Post "https://api.openai.com/v1/completions": read tcp 192.168.10.17:9455->104.18.7.192:443: wsarecv: An existing connection was forcibly closed by the remote host. 2023/10/28 19:35:44 RetCode:0 Selector:2 2023/10/28 19:36:09 RetCode:0 Selector:0 2023/10/28 19:36:10 RetCode:0 Selector:2 2023/10/28 19:36:10 hadler Received msg : 你说什么 2023/10/28 19:36:10 Received User Meeee Text Msg : 你说什么 2023/10/28 19:36:10 request gtp json string : {"model":"text-davinci-003","prompt":"你说什么","max_tokens":2048,"temperature":0.7,"top_p":1,"frequency_penalty":0,"presence_penalty":0} 2023/10/28 19:36:11 gtp request error: Post "https://api.openai.com/v1/completions": read tcp 192.168.10.17:9508->104.18.6.192:443: wsarecv: An existing connection was forcibly closed by the remote host. 2023/10/28 19:36:11 RetCode:0 Selector:2 你好,这个接口目前不可以使用吗 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
我的网页时可以访问openai的呢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
诚南花已开
***@***.***
…------------------ 原始邮件 ------------------
发件人: "djun/wechatbot" ***@***.***>;
发送时间: 2023年10月28日(星期六) 晚上9:49
***@***.***>;
***@***.******@***.***>;
主题: Re: [djun/wechatbot] 支持http代理地址 (PR #8)
proxyURL, _ := url.Parse("http://127.0.0.1:7890")
client := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyURL),
},
proxyURL, _ := url.Parse("http://127.0.0.1:7890/")
client := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyURL),
},其实就是多了这些对吧 但是会报错呢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
诚南花已开
***@***.***
…------------------ 原始邮件 ------------------
发件人: "djun/wechatbot" ***@***.***>;
发送时间: 2023年10月28日(星期六) 晚上9:49
***@***.***>;
***@***.******@***.***>;
主题: Re: [djun/wechatbot] 支持http代理地址 (PR #8)
proxyURL, _ := url.Parse("http://127.0.0.1:7890")
client := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyURL),
},
proxyURL, _ := url.Parse("http://127.0.0.1:7890/")
client := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyURL),
},其实就是多了这些对吧 但是会报错呢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
好的 谢谢 |
您好,方便留个联系方式吗?我这里还是遇到了一些问题 |
No description provided.