Skip to content

Conversation

mokeko
Copy link

@mokeko mokeko commented Sep 29, 2025

Related to #2701.

Other classes in Google plugins such as TTS and STT already accept explicit credentials, but LLM did not.
This PR adds support for passing credentials to the LLM plugin as well.

Notes on the implementation approach:
For example, in sst.py, SpeechAsyncClient.from_service_account_info is used, which internally calls Credentials.from_service_account_info.
Since genai.Client does not provide such a factory method, I decided to call Credentials.from_service_account_info manually.

@CLAassistant
Copy link

CLAassistant commented Sep 29, 2025

CLA assistant check
All committers have signed the CLA.

@mokeko mokeko marked this pull request as ready for review September 29, 2025 16:51
@mokeko mokeko changed the title Support passing credentials to the LLM constructor Support passing credentials to the Google LLM constructor Sep 29, 2025
@mokeko mokeko changed the title Support passing credentials to the Google LLM constructor Google LLM plugin: Support passing credentials to the constructor Sep 29, 2025
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