Comments (13)
搞定了。用glish登录linode,然后xfvb-run启动python来运行脚本,输出内容导出后再复制到config.json里。
from wechat-chatgpt.
看起来像是没过盾导致的从 chatGPT 那获取的 res 返回了别的了,本机的 cf_clearance 服务器是用不了的,得 通过 vvanglro/cf-clearance 使用模拟方式过盾,然后把这里的 cf_clearance 填进配置文件里
from wechat-chatgpt.
我这是不是也是cl_clearance的问题?
INFO[2022-12-13 20:31:39] [消息接收] Type: text, From: ogY6UuP9-yMo-VAyj4zlyBvYrOLY, MsgId: 23922035821866418, Content: 你好
FATA[2022-12-13 20:31:39] 初始化失败: invalid character '\n' in string literal file=/root/wechat-chatGPT/chatGPT/chatGPT.go function=func1 line=37 package=wxChatGPT/chatGPT.newChatGPT
from wechat-chatgpt.
看上去需要XVFB之类的图形交互界面来获取,这在linode下貌似不太好实现,吐血了
from wechat-chatgpt.
看起来像是没过盾导致的从 chatGPT 那获取的 res 返回了别的了,本机的 cf_clearance 服务器是用不了的,得 通过 vvanglro/cf-clearance 使用模拟方式过盾,然后把这里的 cf_clearance 填进配置文件里
我在linode上试了半天都拿不到cf_clearance。跑脚本结果是:
║ Looks like you launched a headed browser without having a XServer running. ║
║ Set either 'headless: true' or use 'xvfb-run ' before running Playwright. ║
║ ║
║ <3 Playwright Team ║
看文档说要用xvfb,但用xvfb-run跑什么根本不知道。
cfscrape 也试了,一直HTTPError: 403 Client Error: Forbidden for url。
兄弟你是什么环境部署的?
from wechat-chatgpt.
我看openai官网的文档,直接用curl都可以调用api,貌似根本不用cf_clearance啊?
from wechat-chatgpt.
我看openai官网的文档,直接用curl都可以调用api,貌似根本不用cf_clearance啊?
openai的接口结果和chatgpt是不一样的,chatgpt会更加智能,目前项目用的是 chat.openai.com 逆向出来的接口
from wechat-chatgpt.
原来如此。我怎么觉得playground出来的内容质量会更高一点啊……chatgpt的接口目前是不是免费可以长期用的?另外你是怎么解决上下文问题的,如何标记开始新的Thread?如果共用一个Thread的话,多用户同时交互时上下文应该会混乱的吧?
from wechat-chatgpt.
原来如此。我怎么觉得playground出来的内容质量会更高一点啊……chatgpt的接口目前是不是免费可以长期用的?另外你是怎么解决上下文问题的,如何标记开始新的Thread?如果共用一个Thread的话,多用户同时交互时上下文应该会混乱的吧?
这个解释起来有点复杂,可以自行去代码里看看,这部分的代码实现自我感觉写的还是挺巧妙的 (
from wechat-chatgpt.
原来如此。我怎么觉得playground出来的内容质量会更高一点啊……chatgpt的接口目前是不是免费可以长期用的?另外你是怎么解决上下文问题的,如何标记开始新的Thread?如果共用一个Thread的话,多用户同时交互时上下文应该会混乱的吧?
这个解释起来有点复杂,可以自行去代码里看看,这部分的代码实现自我感觉写的还是挺巧妙的 (
学习了,原来是做了一个map映射:)
能否指点下怎么用vvanglro/cf-clearance过盾呀?莫非要部署一个带GUI的linode才行吗?
from wechat-chatgpt.
看起来像是没过盾导致的从 chatGPT 那获取的 res 返回了别的了,本机的 cf_clearance 服务器是用不了的,得 通过 vvanglro/cf-clearance 使用模拟方式过盾,然后把这里的 cf_clearance 填进配置文件里
我在自己电脑上面运行的wechat-chatGPT, 想通过内网穿透来使用, 然后session-token, cf_clearance, user-agent都填的是本机浏览器获取到的值, 为啥还是会出现这个issues出现的问题? cf_clearance不是只要IP和user-agent一样就能过么, 我都是本机访问的, 应该都一样的呀...
from wechat-chatgpt.
from wechat-chatgpt.
看起来像是没过盾导致的从 chatGPT 那获取的 res 返回了别的了,本机的 cf_clearance 服务器是用不了的,得 通过 vvanglro/cf-clearance 使用模拟方式过盾,然后把这里的 cf_clearance 填进配置文件里
我在自己电脑上面运行的wechat-chatGPT, 想通过内网穿透来使用, 然后session-token, cf_clearance, user-agent都填的是本机浏览器获取到的值, 为啥还是会出现这个issues出现的问题? cf_clearance不是只要IP和user-agent一样就能过么, 我都是本机访问的, 应该都一样的呀...
具体错误发一下,还有请不要在已经关闭的issue里提问
from wechat-chatgpt.
Related Issues (18)
- 请问下 gpt的session填在哪里呢 HOT 1
- 在本机启动该程序是不是就不用想办法获取cf_clearance了? HOT 4
- 我觉得企业微信可能不会封号,他本来就有很多接口 HOT 1
- 求出视频版教程(小白看不太懂) HOT 2
- win10 如何部署呢
- 会话建立成功后,报1小时内请求太多,实际上就成功通讯了2次,重启无效 HOT 2
- 是没有用chatgpt的api接口吗
- 合作开发chat GPT 内核的应用,有意向请打电话13615899736或 Email:[email protected] 季先生
- 这个项目支持chatgpt个人账户Token和官方公开的API哪种方式? HOT 1
- 合作项目
- Mac 系统遇到一些初始化错误 HOT 4
- 请问怎么用啊 能出个readme么,已star HOT 1
- 请问下5s限制是怎么突破的呀?代码里没看到呢 HOT 2
- 可以考虑使用客服消息回调 HOT 2
- 编译后运行项目,访问127.0.0.1:7458提示404 Page not found HOT 6
- 怎样提高到15秒回复呢? HOT 2
- 请求超时,导致服务自动退出 HOT 6
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 wechat-chatgpt.