-
Notifications
You must be signed in to change notification settings - Fork 1.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
API 请求出错 #106
Comments
docker-compose 信息 version: '3.5'
services:
bingo:
image: weaigc/bingo
container_name: bingo
ports:
- "7860:7860"
environment:
- BING_HEADER=""
- HTTP_PROXY=http://192.168.0.58:9999
- HTPPS_PROXY=http://192.168.0.58:9999
|
我直接用库里的代码也不行 import openai
openai.api_key = ""
openai.api_base = "http://192.168.0.58:7860" # 这里可以改为你自己部署的服务,bingo 服务版本需要 >= 0.9.0
# create a chat completion
completion = openai.ChatCompletion.create(model="gpt-4", stream=False, messages=[{"role": "user", "content": "Hello"}])
print(completion.choices[0].message.content)
|
这就是我不太理解的地方, 比如代理服务器 server_1, IP 是22.x.x.x 我本地代理转发是 192.168.0.58 我直接在22.X 上边部署 docker API 是可用的, 但是我在58上部署docker ,设置代理为 22.x 就不行 |
我想问问。我在docker compose 里设置了 BING_HEADER,为什么API 也无法使用?API是不是只支持匿名访问。不支持带用户数据来访问吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
页面可用, API 不可用
下边是报错信息
不携带 cookie 请求 api
这个是携带 cookie 请求 API
The text was updated successfully, but these errors were encountered: