bootstrap gpt
1.0.0
Guide GPT to help you complete various tasks efficiently. gpt-plugin can be connected to the Internet, summarize web pages, break the word limit, support prompt arrangement, can be automated, and supports web api
Chinese
.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
. : Label
. > Move/Print
.< read
. @ Call the custom process spider,chat,len,-,text-len
. ^ Branch jump jump label or number line
interpreterinterpreter3.py