Giter Club home page Giter Club logo

Comments (2)

csyeqing avatar csyeqing commented on August 16, 2024

我自己单独写的程序调用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.

asleepyfish avatar asleepyfish commented on August 16, 2024

Unexpected response code for CONNECT: 400

你的代理有问题,400说明是不完整的请求。但是这种情况一般多调用几次会有效果。把错误重试次数调大一些。

from chatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.