Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Jul 3, 2024

Allow users to pass client options to the GCP clients for the
googleai and vertexai plugins.

To allow this and also to enable additional config in the future
without introducing breaking changes, add a Config struct to
each plugin, and have Init take it as an argument.

Also, slightly rewrite the samples to avoid redundant code for
looking up environment variables.

@jba jba changed the title [Go] add support GCP client options [Go] add support for GCP client options Jul 3, 2024
Allow users to pass client options to the GCP clients for the
googleai and vertexai plugins.

To allow this and also to enable additional config in the future
without introducing breaking changes, add a Config struct to
each plugin, and have Init take it as an argument.

Also, slightly rewrite the samples to avoid redundant code for
looking up environment variables.
@jba jba force-pushed the jba/client-options branch from 4a31e36 to 6240c13 Compare July 10, 2024 19:28
@jba jba merged commit 1c8c50a into main Jul 10, 2024
@jba jba deleted the jba/client-options branch July 10, 2024 19:38
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.

2 participants