3
开源一个 ChatGPT Go SDK,稳定可用,今早还能正常回复内容
source link: https://www.v2ex.com/t/902101
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ChatGPT 官方目前没有对外开放 API ,市面上各种 ChatGPT 应用、SDK 本质上都是用的模拟登录技术,需要先登录 ChatGPT 官网,拿到必要的 Cookie ,再发起模拟请求。
ChatGPT 官网在前天更新了安全策略,目前大部分的第三方 ChatGPT 应用和反代站点都不能用了,使用此 SDK 模拟请求时,需要每两小时更新一次 Cookie 。
- 支持一次性读取 ChatGPT 回复内容
- 支持基于数据流动态读取 ChatGPT 回复内容
- 支持上下文语义连续对话
- 目前仅支持手动填写 Cookie 的方式,不支持账号密码登录,不支持自动刷新 Cookie
- 基于数据流实时读取 ChatGPT 回复内容
- 基于数据流实时读取 ChatGPT 回复内容
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK