Comments (2)
我自己单独写的程序调用openai的API一切正常,api的URL,api.openai.com换成腾讯云的云函数主机就可以了。但是我用你的这个依赖,代理主机也是写的我这个腾讯云的云函数主机,使用的时候,报错: i.g.a.service.OpenAiProxyService : answer failed 1 times, the error message is: java.io.IOException: Unexpected response code for CONNECT: 400
我用wireshark拦截了一下本地请求,发现你的依赖发出了api.openai.com的请求,这就奇怪了,既然写了代理主机,为什么还会向api.openai.com发请求?
from chatgpt.
Unexpected response code for CONNECT: 400
你的代理有问题,400说明是不完整的请求。但是这种情况一般多调用几次会有效果。把错误重试次数调大一些。
from chatgpt.
Related Issues (20)
- 请问如何在流传输过程中主动停止这次响应呢 HOT 3
- 代理 HOT 1
- 这个azure能用吗 HOT 1
- 好像还不支持多个key轮询? HOT 1
- 关于代理地址的建议 HOT 1
- 无法流式返回 HOT 2
- 多轮会话的缓存问题 HOT 3
- 关于查询账单和订阅部分的bug HOT 5
- OkHttpClient 默认并发数问题 HOT 2
- proxy需要auth验证账号密码怎么办 HOT 7
- system消息 HOT 3
- 可以给一个兼容springboot3 版本的包嘛 HOT 3
- 救救孩子 HOT 3
- 使用stream输出到web只输出一半 HOT 1
- 寻求课程合作
- 引入1.3.5后 运行不了啊 HOT 1
- 这个项目真的很棒,话说请问,可以额外加入这些设置到依赖里面吗? HOT 2
- 免费的openai反向代理最好别用 HOT 1
- 大佬 能写个支持function_call吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt.