Skip to content
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

poe网页转OpenAI接口镜像 #50

Open
dalaolala opened this issue Jul 22, 2023 · 3 comments
Open

poe网页转OpenAI接口镜像 #50

dalaolala opened this issue Jul 22, 2023 · 3 comments

Comments

@dalaolala
Copy link
Owner

dalaolala commented Jul 22, 2023

说明

  • poe.com可以免费的试用ChatGPT的聊天服务,而且限制相对较少!
  • 但是它屏蔽了一些国家,必须科学访问。
  • 如何绕过科学,直接访问,而且能像使用openai官方接口一样用它
  • 本文主要解决以上问题。

1、登录poe.com ,然后F12 - Application -Cookies 找到 p-b 的 value,这个就是你的key

image

2、接口请求地址为 https://gpt.ping8.top 这个相当于OpenAI的地址

3、接下来就跟你用OpenAI的接口一样了

这里用 chatgpt-next-web 举例

docker run --name chat -d -p 4000:3000 \
   -e OPENAI_API_KEY="上面第一步获取到的key" \
   -e CODE="123456" \
   -e BASE_URL="https://gpt.ping8.top" \
   yidadaa/chatgpt-next-web

打开浏览器 https://ip:4000 设置里输入密码 123456 就能正常用了

20230708 更新

修复了上下文的问题,支持流式响应

更新docker镜像一键部署到自己的服务器

 docker run --name poeai -d -p 3000:3000 spectmm/poeai:v1.3

启动成功后,这样测试下:

curl -X POST \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer 这里写上面那个key" \
     -d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "hi!"}], "temperature": 0.7}' \
     http://127.0.0.1:3000/v1/chat/completions;

20230709 更新

更新了镜像,适配了 chatgpt-next-web的桌面版

桌面版下载地址
https://github.com/Yidadaa/ChatGPT-Next-Web/releases

写上域名和那个”key“就行

自己用docker镜像搭建的最好反代一下,用 ip:port 貌似不行

    location / {
    proxy_pass       http://127.0.0.1:3000;
    proxy_set_header Host      $http_host;
    }

image

20230722 更新

poe接口修改了参数导致报错,修复了这个问题
优化接口查询,其它看上面说明,用镜像的得把镜像删除重新拉一下

@dalaolala dalaolala changed the title poe接口转openai接口镜像 poe接口转OpenAI接口镜像 Jul 22, 2023
@dalaolala dalaolala changed the title poe接口转OpenAI接口镜像 poe网页转OpenAI接口镜像 Jul 22, 2023
@skyyewen
Copy link

skyyewen commented Aug 8, 2023

@StudyingLover
Copy link

请问https://gpt.ping8.top/是如何实现的呢,是使用服务器还是CF Worker呢

我认为你应该向poe提问

@dalaolala
Copy link
Owner Author

dalaolala commented Sep 3, 2023

20230903 更新

POE天天改算法,目前本项目处于暂停维护状态

这里给大家提供一个可免费使用ChatGPT API接口的地方

https://api.ping8.top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants