Coder Social home page Coder Social logo

renovate-bot / x-oss-byte-_-golang-chatgpt-linebot-render Goto Github PK

View Code? Open in Web Editor NEW

This project forked from x-oss-byte/golang-chatgpt-linebot-render

0.0 0.0 0.0 10 KB

A Golang ChatGPT linebot project, quickly built on the platform Render

Shell 3.20% Go 96.80%

x-oss-byte-_-golang-chatgpt-linebot-render's Introduction

Golang-ChatGPT-linebot-Render

A Golang ChatGPT linebot project, quickly built on the platform Render

繁體中文

日本語

1. This project refers to the following ones and official docs below.

https://github.com/kkdai/chatgpt
https://github.com/line/line-bot-sdk-go
https://github.com/kkdai/LineBotTemplate

2. Please fork this project to your own Github account first. Go to Render website, choose to add "Web Services", import this project with your Github account, and then set your own project name and choose a free plan. Remember to click "Advanced" below to set the environment variables.

3. Four environment variables must be set in Render's Environment Variables in this project, namely OPENAI_TOKEN and OPENAI_MAXTOKENS, which are OPENAI's api key and the upper limit of the token number of the answer text (the more you set, the more text of the answer you get, but if you exceed the free quota, you will spend more money. It can be set around 200-400 at the beginning), and then there are two other environment variables CHANNEL_SECRET and CHANNEL_TOKEN of line. It may take some time to start deploying after setting. After success, copy your own URL to the Line developer webpage to set the Webhook URL. For example,

https://xxx.onrender.com/callback


Line and OPENAI api settings:

https://github.com/howarder3/GPT-Linebot-python-flask-on-vercel

x-oss-byte-_-golang-chatgpt-linebot-render's People

Contributors

pyfbsdk59 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.