Skip to content

Support for Service Account (from Google Vertex AI) to access Gemini services #317

Description

@sree1658

Hi Hadley,

We attempted using ellmer library functions to access Gemini API services with service account json key file. We also found another library (gemini.R maintained by Jinhwan Kim) https://github.com/jhk0530/gemini.R which has support for Vertex platform from Google

Given a Service account Key from Google vertex ai platform,

{
  "type": "service_account",
  "project_id": "my-project-id",
  "private_key_id": "someprivatekeyid",
  "private_key": "...PRIVATE_KEY...",
  "client_email": "my-service-account@my-project-id.iam.gserviceaccount.com",
  "client_id": "my-client-id.apps.googleusercontent.com",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/my-service-account my-project-id.iam.gserviceaccount.com"
}

Could you please enable support for Service account (from google vertex ai platform) in ellmer library

Thanks
Sreeram R

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions