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

Conversation

kkdai
Copy link
Owner

@kkdai kkdai commented Jan 3, 2024

No description provided.

- 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>
- Remove the `GCS_PROJECT_ID` and `GCS_BUCKET_NAME` environment variables from `app.json`

Signed-off-by: Evan Lin <evan.if.lin@linecorp.com>
- 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>
- 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>
- 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>
- 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>
…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>
…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 kkdai merged commit c5ba6be into main Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant