EdgeGPT Bing Chat 逆向工程开源项目

我要开发同款
匿名用户2023年04月18日
297阅读

技术信息

开源地址
https://github.com/acheong08/EdgeGPT
授权协议
Unlicense

作品详情

EdgeGPT是BigChatAI逆向工程的API。

设置安装模块pytho3-mpipistallEdgeGPT--upgrade要求pytho3.8+一个已经通过候补名单的微软账户 https://big.com/chat (必填)需要在NewBig支持的国家(中国大陆需使用VPN)检查访问权限(必需)安装最新版本的MicrosoftEdge或者,您可以使用任何浏览器并将用户代理设置为Edge的用户代理(例如Mozilla/5.0(WidowsNT10.0;Wi64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/111.0.0.0Safari/537.36Edg/111.0.1661.51).您可以使用像"User-AgetSwitcheradMaager" Chrome 和 Firefox 这样的扩展轻松完成此操作.打开 big.com/chat如果您看到聊天功能,就准备就绪获取身份验证(必需)安装 Chrome 或 Firefox 的cookieeditor扩展移步到 big.com打开扩展程序点击右下角的"导出"(将会把内容保存到你的剪贴板上)把你剪贴板上的内容粘贴到 cookies.jso 文件中图片生成$pytho3-mImageGe-husage:ImageGe.py[-h][-UU][--cookie-fileCOOKIE_FILE]--promptPROMPT[--output-dirOUTPUT_DIR][--quiet][--asycio]optioalargumets:-h,--helpshowthishelpmessageadexit-UUAuthcookiefrombrowser--cookie-fileCOOKIE_FILEFilecotaiigauthcookie--promptPROMPTPrompttogeerateimagesfor--output-dirOUTPUT_DIROutputdirectory--quietDisablepipeliemessages--asycioRuImageGeusigasycio开发演示fromImageGeimportImageGeimportargparseimportjsoasycdefasyc_image_ge(args)->Noe:asycwithImageGeAsyc(args.U,args.quiet)asimage_geerator:images=awaitimage_geerator.get_images(args.prompt)awaitimage_geerator.save_images(images,output_dir=args.output_dir)if__ame__=="__mai__":parser=argparse.ArgumetParser()parser.add_argumet("-U",help="Authcookiefrombrowser",type=str)parser.add_argumet("--cookie-file",help="Filecotaiigauthcookie",type=str)parser.add_argumet("--prompt",help="Prompttogeerateimagesfor",type=str,required=True,)parser.add_argumet("--output-dir",help="Outputdirectory",type=str,default="./output",)args=parser.parse_args()#Loadauthcookiewithope(args.cookie_file,ecodig="utf-8")asfile:cookie_jso=jso.load(file)forcookieicookie_jso:ifcookie.get("ame")=="_U":args.U=cookie.get("value")breakifargs.UisNoe:raiseExceptio("Couldotfidauthcookie")ifotargs.asycio:#Createimagegeeratorimage_geerator=ImageGe(args.U,args.quiet)image_geerator.save_images(image_geerator.get_images(args.prompt),output_dir=args.output_dir,)else:asycio.ru(asyc_image_ge(args))

功能介绍

EdgeGPT 是 Bing Chat AI 逆向工程的 API。 设置 安装模块
python3 -m pip install EdgeGPT --upgrade 要求 python 3....

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论