{"id":19486135,"url":"https://github.com/weekend-project-space/bootstrap-gpt","last_synced_at":"2025-07-16T08:36:09.851Z","repository":{"id":153420198,"uuid":"628786433","full_name":"weekend-project-space/bootstrap-gpt","owner":"weekend-project-space","description":"gpt-plugin, 可联网，总结网页，突破字数限制，支持prompt编排，可自动化，给chat-gpt一个翅膀, 定制你的bootstrap, 点击链接查看如何使用","archived":false,"fork":false,"pushed_at":"2023-05-19T07:43:15.000Z","size":9632,"stargazers_count":70,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-25T18:39:11.737Z","etag":null,"topics":["chat-gpt","gpt","gpt-plugins"],"latest_commit_sha":null,"homepage":"https://weekendproject.online/posts/bootstrap-gpt-start/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weekend-project-space.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/fun/function.py","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-17T01:25:20.000Z","updated_at":"2025-01-21T06:16:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"30aec56c-3536-468f-a3d3-329517d40aeb","html_url":"https://github.com/weekend-project-space/bootstrap-gpt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weekend-project-space/bootstrap-gpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weekend-project-space%2Fbootstrap-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weekend-project-space%2Fbootstrap-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weekend-project-space%2Fbootstrap-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weekend-project-space%2Fbootstrap-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weekend-project-space","download_url":"https://codeload.github.com/weekend-project-space/bootstrap-gpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weekend-project-space%2Fbootstrap-gpt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265497896,"owners_count":23777091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat-gpt","gpt","gpt-plugins"],"created_at":"2024-11-10T20:34:42.066Z","updated_at":"2025-07-16T08:36:09.814Z","avatar_url":"https://github.com/weekend-project-space.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bootstrap-gpt\n\n\u003e 引导 gpt 帮你高效完成各种事情，可以联网，支持 prompts 编排，没有完全 auto 更多自定义空间，自己编排任务流\n\n![bootstrap-gpt](./doc/gpt-online-demo.gif)\n![bootstrap-gpt](./doc/screen_cn.png)\n\n## 下载\n\n## 设置 api key\n\n.env\n\n```\napi_key=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n## 运行\n\n```\ncd bootstrap-gpt\n\npip install openai \u0026\u0026 pip install beautifulsoup4 \u0026\u0026 pip install jsonpath \u0026\u0026 pip install jinja2\n\npython3 ./main.py\n```\n\n## http server\n\n```\n\u003e python3 main.py serve\n\nBootstrap-GPT server v1.0.0\n\n➜ Api: http://localhost:9981/v1/chat/completions\n➜ Web: https://weekendproject.space/chat-gpt-online\n```\n\n**api**\n\n```\npost /v1/chat/completions\n{\"messages\":[{\"role\":\"user\",\"content\":\"v2-hot\"}],\"model\":\"gpt-3.5-turbo\"}\n```\n\nres\n\n```\n{\"choices\": [{\"message\": {\"role\": \"assistant\", \"content\": \"hello\"}]}\n```\n\n配合 [chat-gpt-online](https://weekendproject.space/chat-gpt-online.html) 食用效果更佳\n\n\u003e 注意需要设置一个 api-key(xxx 即可)\n\n## 引导示例\n\n- summarize.json\n\n```\n{\n    \"author\": \"ruidong\",\n    \"date\": \"2023-04-19\",\n    \"version\": \"0.1\",\n    \"description\": \"总结网页\",\n    \"boot\": [{\n        \"w\": \"请输入网址\",\n        \"r\": \"r0\",\n        \"p\": \"spider:{{r0}}:select=article\"\n    }, {\n        \"p\": \"chat:总结一下这个页面介绍了什么{{m0}}\"\n    }, {\n        \"w\": \"总结: {{m1}} \\n还要总结其他网页吗? y/n\",\n        \"r\": \"r2\",\n        \"b\": {\n            \"y\": 0,\n            \"n\": -1\n        }\n    }]\n}\n```\n\n- w: write 支持模板变量\n- r: read 读取输入\n- b: branch 分支 支持 Object 字段 eq 跳转 和 Array 循序执行 或 无继续往下执行\n- p: prompt 支持模板变量 微指令 用于引导 chatgpt[chat:] 给其文案 或 爬虫[sprider:]搜索 纯文本[text:]输出， 可以扩展更多微指令提示引导\n\nr2 r1 为变量名称 为类型+index 索引 有 r：reader w:writer p:prompts m:msg 之分\n\n生成规则参考[interpreter.py](./interpreter.py)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweekend-project-space%2Fbootstrap-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweekend-project-space%2Fbootstrap-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweekend-project-space%2Fbootstrap-gpt/lists"}