Coder Social home page Coder Social logo

arieslee / bootstrap-gpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weekend-project-space/bootstrap-gpt

0.0 0.0 0.0 7.42 MB

gpt-plugin, 可联网,突破字数限制,支持prompt编排,可自动化,给chat-gpt一个翅膀, 定制你的bootstrap, 点击链接查看如何使用

Home Page: https://weekendproject.space/posts/bootstrap-gpt-start/

License: MIT License

Python 100.00%

bootstrap-gpt's Introduction

bootstrap-gpt

Guide GPT to help you efficiently complete various tasks, write GPT prompts programs, and automate GPT prompts, support web api

bootstrap-gpt

bootstrap-gpt

translate

中文

download

set api key

.env

api_key=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api_base=https://chatgpt-api.shn.hk/v1/
server_port=9981

run

cd bootstrap-gpt

pip install openai && pip install beautifulsoup4 && pip install jsonpath && pip install jinja2

python3 ./main.py

http server

> 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)

bootstrap simple

{
    "author": "ruidong",
    "date": "2023-04-17",
    "version": "0.1",
    "description": "code boot",
    "boot": [{
            "w": "Hello, this is a code template. Please select template 1. simple 2. demo",
            "r":"r0",
            "b": {
                "1": 1,
                "2": 2
            }
        },
        {
            "w": "Please enter the language type"
            "r":"r1",
        },
        {
            "w": "Please enter the requirement",
            "r":"r2",
            "p": "chat:Write a {{r2}} program for {{r1}}"
        }
    ]
}
  • w: write supports template variables

  • r: read

  • b: Branch branch supports object field eq jump and Array sequential execution or no further execution

  • p: prompt supports template variable micro instructions for guiding chatgt [chat:] to search for plain text or crawler [spider:] output, which can expand more micro instruction prompt guidance

r2 r1 is a variable with a name of type and an index of r: reader w: writer p: prompts m: msg

Generate Rule Reference interpreter.py

bootstrap-gpt's People

Contributors

weekend-project-space avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.