gpt anywhere
v1.2.0
gpt Anywhere是浏览器扩展程序(目前Chrome),它允许用户在网站上的任何地方输入GPT完成。
典型用例是:
.
├── 01-shared # Shared types and config files
├── 02-options # Chrome extension's global files (manifest.json, icons, etc.)
├── 03-options # Options script
├── 04-background # Background script
├── 05-content # Content script
└── ...
有关options , background和content的参考,请参见Chrome扩展文档。
构建Chrome扩展:
npm run build./dist文件夹加载扩展扩展名保存用户的API密钥,并提示在浏览器同步存储中。
流程图BT
存储([本地存储])---背景[背景脚本]
Openai([[Openai])---背景
背景---- | API调用|选项[选项页面]
背景---- | API调用|第1页(第1页)
背景---- | API调用|第2页(第2页)
背景---- | API调用|第3页(页...)
背景---- | API调用|帕根(第n页)
背景脚本揭示了选项页面和每个浏览页面的API。脚本通过此API与runtime.sendMessage()和runtime.connect()进行通信。
不执行