/line-chatgpt

ChatGPT LINEボット

Primary LanguagePython

ChatGPT Line Bot

setup

  1. Copy the env.template file to create a new .env file.
cp env.template .env
  1. Open the .env file in a text editor and enter your API keys.
vim .env
  1. Input your OpenAI API Key to OPENAI_API_KEY
OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxx
  1. Create Line Channel Access Token
LINE_CHANNEL_ACCESS_TOKEN="channel access token"
  1. Input your Google Custom Search ID to GOOGLE_CSE_ID and Google Custom Search API Key to GOOGLE_API_KEY
GOOGLE_CSE_ID=xxxxxxxxxxxxxxxxxxx
GOOGLE_API_KEY=xxxxxxxxxxxxxxxxxxx

deploy

yarn
sls deploy --stage dev