pinecone-io / go-pinecone

Pinecone.io Golang Client
Apache License 2.0
49 stars 9 forks source link

Refactor `/codegen/build-clients.sh` to support new `apis` structure, regenerate for `2024-10` #76

Closed austin-denoble closed 2 months ago

austin-denoble commented 2 months ago

Problem

The upstream /apis submodule has undergone some changes since we last regenerated the client core. Our /codegen/build-clients.sh script no longer handles the new module naming or structure properly.

Additionally, we want to regenerate off the upcoming API version so we can pull in changes for things like Rerank.

This PR is merging to a release candidate (RC) branch: release-candidate/2024-10. We will track upcoming major version changes in this branch and use it for releasing dev builds.

Solution

We made the decision to have InferenceService as its own module inside Client because of the split in the API spec, so this was fairly easy to refactor around here.

Type of Change

Test Plan

The code changes under /internal/gen/* are all from running the new /codegen/build-clients.sh script. I changed files in the submodule for apis manually for generating, but it aligns with this PR: https://github.com/pinecone-io/apis/pull/138

Make sure CI build + tests pass for the new core stuff here.