diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36fde4b..2be95b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [1.21.x, 1.22.x] + go-version: [1.21.x, 1.23.x] steps: - name: Setup Go uses: actions/setup-go@v5 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 1b43e01..16f30be 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -29,4 +29,4 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.60.3 + version: v1.62.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 61cb05f..f0e328b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,10 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.22.x + go-version: 1.23.x - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: version: latest workdir: ./cmd/gemini diff --git a/gemini/generative_model_builder.go b/gemini/generative_model_builder.go index 724a404..aee3b09 100644 --- a/gemini/generative_model_builder.go +++ b/gemini/generative_model_builder.go @@ -28,8 +28,8 @@ func NewGenerativeModelBuilder() *GenerativeModelBuilder { // newCopyGenerativeModelBuilder creates a new [GenerativeModelBuilder], // taking the default values from an existing [genai.GenerativeModel] object. -func newCopyGenerativeModelBuilder(copy *genai.GenerativeModel) *GenerativeModelBuilder { - return &GenerativeModelBuilder{copy: copy} +func newCopyGenerativeModelBuilder(model *genai.GenerativeModel) *GenerativeModelBuilder { + return &GenerativeModelBuilder{copy: model} } // WithName sets the model name. diff --git a/internal/handler/response.go b/internal/handler/response.go index c67c4f0..f751d2d 100644 --- a/internal/handler/response.go +++ b/internal/handler/response.go @@ -19,6 +19,7 @@ func (r dataResponse) String() string { return fmt.Sprintf("%s\n", string(r)) } +//nolint:errname type errorResponse struct { error }