diff --git a/.github/workflows/heroku.yml b/.github/workflows/heroku.yml new file mode 100644 index 0000000..b234097 --- /dev/null +++ b/.github/workflows/heroku.yml @@ -0,0 +1,17 @@ +name: Deploy + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: akhileshns/heroku-deploy@v3.12.12 # This is the action + with: + heroku_api_key: ${{secrets.HEROKU_API_KEY}} + heroku_app_name: "group-summarizer-linebot" #Must be unique in Heroku + heroku_email: "evanslin@gmail.com" \ No newline at end of file diff --git a/main.go b/main.go index 3d661bd..355ef20 100644 --- a/main.go +++ b/main.go @@ -67,7 +67,7 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) { if strings.Contains(message.Text, "gpt:") { ctx := context.Background() req := gpt3.CompletionRequest{ - Model: gpt3.GPT3TextDavinci001, + Model: gpt3.GPT3TextDavinci003, MaxTokens: 300, Prompt: message.Text, } @@ -78,7 +78,6 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) { } else { reply = resp.Choices[0].Text } - } // message.ID: Msg unique ID // message.Text: Msg text