bootstrap gpt
1.0.0
引導GPT 幫助您有效率地完成各種任務,gpt-plugin, 可連網,總結網頁,突破字數限制,支援prompt 編排,可自動化, 支援web api
中文
.env
api_key=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api_base=https://chatgpt-api.shn.hk/v1/
server_port=9981
cd bootstrap-gpt
pip install openai beautifulsoup4 jsonpath html2text flask flask-sse
python3 ./main.py
> python3 main.py serve
Bootstrap-GPT server v1.0.0
➜ Api: http://localhost:9981/v1/chat/completions
➜ Web: https://weekendproject.space/chat-gpt-online
api
post /v1/chat/completions
{"messages":[{"role":"user","content":"v2-hot"}],"model":"gpt-3.5-turbo"}
res
{"choices": [{"message": {"role": "assistant", "content": "hello"}]}
coordination chat-gpt-online Better eating effect
Note that you need to set an api-key (xxx is enough)
总结网页
------
: summarizelabel
> 请输入网页 $
> $ url
@ spider:{{url}}::select=body art
@ chat:总结一下{{art}} summarize
> 总结: {{summarize}} n还要总结其他网页吗? y/n
> $ yes
^ {{yes}} summarizelabel
. : 標籤
. > 移動/列印
. < 讀取
. @ 呼叫自訂過程spider,chat,len,-,text-len
. ^ 分支跳轉跳轉標籤或數字所在行
解釋器interpreter3.py