uripeled2 / llm-client-sdk

SDK for using LLM
MIT License
74 stars 11 forks source link

Example needed for Google Palm 2 API #32

Open tranhoangnguyen03 opened 11 months ago

tranhoangnguyen03 commented 11 months ago

Unlike OpenAI which provided you with an apikey. Google's own convoluted authentication methods involves service account and all sorts of tokens.

Personally, I've tried running gcloud auth print-access-token and use that token for LLMAPIClientConfig, but it doesn't seem to work, and I don't know what else to do. Please help!

uripeled2 commented 11 months ago

Right now you can only use google with this library if you have access to Google PaLM API via MakerSuite But it will be a good addition to add access to PaLM through Vertex AI