Skip to content
/ LineGPT Public

A project that connects OpenAI model with Line Bot

Notifications You must be signed in to change notification settings

wpted/LineGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LineGPT


LineGPT is a Line Bot that responds with OpenAI model

Installation

Usage

Create a yaml file at root directory that looks like below

# LINEGPT.yaml
---
# Server configurations
server:
host: "localhost"
port: :8000

services:
# Line Bot API
line_service:
channel_token: Your Line Channel Access Token
channel_secret: Your Line Channel Secret

# OpenAI API
chatgpt_service:
key: your OpenAI token
...
    go run cmd/main.go

Connect the local port to Line Messaging bot by creating a temporary connection using ngrok.

    ngrok http 8000

Go to Line Developer Console, add the ngrok url(with endpoint /callback) to the webhook field. The url will look something like this

    https://8d3a-211-23-199-105.jp.ngrok.io/callback

Verify the url to see if the service is ready.

Or

The project is deployed on Azure Container Registry and Azure App service, try by scanning the below QRCode

Add the bot as friend, then, voilà!

About

A project that connects OpenAI model with Line Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published