Skip to content

Commit

Permalink
Merge pull request #6 from kkdai/add_heroku_action
Browse files Browse the repository at this point in the history
Add heroku action
  • Loading branch information
kkdai authored Dec 23, 2022
2 parents 5e2e1f6 + ebecdfe commit 3a63664
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/[email protected] # 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: "[email protected]"
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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
Expand Down

0 comments on commit 3a63664

Please sign in to comment.