patterns-ai-core / google_palm_api

Ruby client for Google PaLM API
MIT License
2 stars 2 forks source link

Google Palm API should(?) also support the Vertex AI #6

Open palladius opened 10 months ago

palladius commented 10 months ago

Hi Andrei, huge fan of your work!

I've tried langchainrb today and it works like a charm! unfortunately the Palm API is only available in some countries (and mine is not one of those) so I can't do things like:

Langchain::LLM::GooglePalm.new  api_key: 'My looooong key'

even though i do have a key (I'm a Googler).

What I do have is the Vertex AI version of the API, which is called in the usual Google Cloud way (gcloud auth print-access-token / JSON key linked to a service account, and so on).

I was wondering what's your take on it:

I'm happy to help / support you in anyway I can if you want to help fill this gap! The equivalent in Python is here:

Riccardo

palladius commented 10 months ago

My desired outcome is that I'm able to invoke this way:

Langchain::LLM::GooglePalm.new(api_key_file: "./secret.json")