ChatGPT Desktop 下载和使用方法

148次阅读

共计 976 个字符,预计需要花费 3 分钟才能阅读完成。

首先是下载,官方地址,安全可靠:

https://persistent.oaistatic.com/sidekick/public/ChatGPT_Desktop_public_latest.dmg

当然,订阅 Plus 是必须的,即使是 Plus 也只有极少数人可以用,大多数人都没开放访问,会显示没有权限。
这时候你需要一个可以修改 http 请求 response body 的代理软件,例如 surge 或者 proxyman 之类的。
我是 surge,以此为例,其他的应该也差不多。

因为是 https,所以安装代理软件的证书并信任,然后开启 MitM,并设置对 chatgpt 的 ab 网址生效;

[MITM]
skip-server-cert-verify = true
hostname = ab.chatgpt.com

然后对 https://ab.chatgpt.com/v1/initialize 这个网址返回的数据进行修改,surge 可以用 script,其他代理软件也有类似功能:

[Script]
ChatGPT Desktop = type=http-response,pattern=https://ab.chatgpt.com/v1/initialize,requires-body=1,max-size=0,debug=1,script-path=chatgtp_desktop.js

基本就是把返回的 body json 数据里的 feature_gates[*].value 都设置为 true,feature_gates[*].secondary_exposures[*].gateValue 都设置为“true”:

chatgtp_desktop.js

var data = JSON.parse($response.body);

for (const key in data.feature_gates) {if (data.feature_gates.hasOwnProperty(key)) {data.feature_gates[key].value = true;

        data.feature_gates[key].secondary_exposures.forEach(exposure => {exposure.gateValue = "true";});
    }
}

$done({body: JSON.stringify(data)});
正文完
 0