feat(client): allow custom HTTP configuration and Google Credentials #2308#324
feat(client): allow custom HTTP configuration and Google Credentials #2308#324nair-shubh wants to merge 2 commits intogoogleapis:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Add support for using custom HTTP configurations and Google Credentials with the Gemini API backend, similar to existing Vertex AI support. - Update NewClient function to handle custom credentials for Gemini API - Add unit tests to verify functionality - Include example demonstrating the feature Fixes #2308
|
First open source contribution. Kindly let me know if there are any changes or standards that I should follow. |
|
@nair-shubh The Gemini API backend supports API Key authorization https://ai.google.dev/gemini-api/docs/api-key. I cannot find any public docs about custom credential support in Gemini API backend. For my education, could you help me understand how to use credential to authorize to Gemini API backend. Thanks |
#2308 [Go] Allow users to provide custom http configuration to go-genai client #2308
Description
This PR adds support for using custom HTTP configurations and Google Credentials with the Gemini API backend, similar to how they're already supported for the Vertex AI backend.
Changes
Testing
All tests pass, including the new test cases for custom credentials and HTTP configuration.