Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unuse and support render #2

Merged
merged 8 commits into from
Jan 3, 2024
Merged

Commits on Jan 3, 2024

  1. chore: update dependencies and Go version

    - Update the version of `actions/checkout` to v4
    - Update the version of `actions/setup-go` to v4
    - Change the Go version from 1.15 to 1.21.1
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    be06cca View commit details
    Browse the repository at this point in the history
  2. chore: remove GCS environment variables from app.json

    - Remove the `GCS_PROJECT_ID` and `GCS_BUCKET_NAME` environment variables from `app.json`
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    c1c8c5b View commit details
    Browse the repository at this point in the history
  3. refactor: refactor main.go to simplify code structure

    - Delete file `gcs.go`
    - Modify file `main.go`:
       - Remove imports that are not needed
       - Modify the `callbackHandler` function by removing a nested if statement
       - Remove the `uploadAndDectect` function
       - Modify the `newVideoFlexMsg` function by removing several lines of code
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    d553ec4 View commit details
    Browse the repository at this point in the history
  4. chore: add a new web service and environment variables

    - Added a new file `render.yaml`
    - Added a `web` service named `linebot-gemini-pro`
    - Added environment variables for `ChannelAccessToken`, `ChannelSecret`, and `GOOGLE_GEMINI_API_KEY`
    - The file does not end with a newline character
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    7a65894 View commit details
    Browse the repository at this point in the history
  5. refactor: refactor variable assignments for improved readability

    - Remove the unused variables `projectID` and `bucketName`
    - Move the assignment of `geminiKey` to the beginning of the `main` function to improve readability
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    a3b134a View commit details
    Browse the repository at this point in the history
  6. chore: update dependencies and add new dependencies

    - Update dependency `github.com/google/generative-ai-go` from version `0.4.0` to `0.5.0`
    - Update dependency `github.com/line/line-bot-sdk-go/v7` from version `7.15.0` to `7.21.0`
    - Update dependency `google.golang.org/api` from version `v0.149.0` to `v0.154.0`
    - Update dependency `cloud.google.com/go/compute` from version `v1.23.1` to `v1.23.3`
    - Update dependency `cloud.google.com/go/longrunning` from version `v0.5.2` to `v0.5.4`
    - Add new dependency `github.com/felixge/httpsnoop` at version `v1.0.4`
    - Add new dependency `github.com/go-logr/logr` at version `v1.3.0`
    - Add new dependency `github.com/go-logr/stdr` at version `v1.2.2`
    - Update dependency `go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc` from version `v0.46.1` to `v0.46.1`
    - Update dependency `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` from version `v0.46.1` to `v0.
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    9be66bf View commit details
    Browse the repository at this point in the history
  7. feat: increase the amount of returned recordings and improve temperat…

    …ure handling
    
    - Raise the amount of returned recordings from `10` to `100`
    - Add constants `ImageTemperture` and `ChatTemperture`
    - Move the `Temperature` assignment for `model` to use the new constants
    - Remove `model.Temperature = 0.8`
    - Add a new function `printResponse` for printing the response
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    a5cf1fe View commit details
    Browse the repository at this point in the history
  8. docs: refactor deployment process, fix typo, and update API key param…

    …eter instruction
    
    - Remove the second step of the deployment process and provide two new options instead
    - Correct a typo in the image URL
    - Update the Google Gemini API Key parameter instruction
    
    Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
    kkdai committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    2c7de7a View commit details
    Browse the repository at this point in the history