The PaLM API is decomissioned. The Vertex AI PaLM API [is scheduled to be decomissioned in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text). Please upgrade to the Gemini API. Thank you.