Code Monkey home page Code Monkey logo

anon-hunter's Introduction

Installation

  1. Clone the serverless_gpt repository on GitHub.
  2. Go to Vercel and authenticate with GitHub.
  3. Go to the Dashboard page and click the "Overview" tab.
  4. Click the "Add new" button, then select "Project", and select "Import Git Repository" from the list.
  5. Select the cloned repository from the list.
  6. Go to the Environment Variables page and fill in the following variables:
INIT_LANGUAGE = fa
MSG_LIST_LIMIT = 20
OPENAI_MODEL = text-davinci-003
OPENAI_TEMPERATURE = 0.5
OPENAI_FREQUENCY_PENALTY = 0
OPENAI_PRESENCE_PENALTY = 0
OPENAI_MAX_TOKENS = 250
TELEGRAM_BOT_TOKEN = [bot token]
OPENAI_API_KEY = [openai_api_key]
  1. To get the bot token, go to @BotFather, send /newbot, and complete the instructions.

  2. Using a VPN (if you live in iran :D), go to the following URL to enable the webhook:

https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/setWebhook?url=https://{your-app-name-on-vercel}.vercel.app/callback

Usage

Once the installation is completed, you can start using ServerlessGPT to build secure and efficient dialogue flows for any task.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

anon-hunter's People

Contributors

mmshooreshi avatar

Watchers

 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.