Questions tagged [palm-api]

The PaLM API allows developers to use state-of-the-art Large Language Models (LLMs), to build language applications.

The PaLM API allows developers to use state-of-the-art Large Language Models (LLMs), to build language applications. This overview contains programming language independent information about the API. Once you're familiar with the general functionality available to you through the API, try a quickstart for your language of choice (Python, Node, Java, Swift) to start developing.

9 questions
2
votes
6 answers

Google generative api with palm: 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT"

I have been trying to use the Palm API and the palm.chat() function with google's new generative api. I've been in a maze of documentation and errors and I can't seem to get past this one. My code is very simple, and the error is coming from a…
2
votes
2 answers

Error message (FailedPrecondition: 400 User location is not supported for the API use.) when using the 51GB Google Colab runtime and Palm API

The Google PaLM API (import google.generativeai as palm) works successfully when I use a 2 CPU colab runtime. However, when I switch to an 8 CPU, 51 GB colab runtime (via Colab Pro+), I get an error when running a simple PaLM API request. The error…
1
vote
1 answer

Google Cloud Vertex AI API not recognising PaLM model

I am currently trying to implement Google's PaLM API into python using the vertexai module. However I run into an error where my code does not recognise the model name (model is called 'chat-bison@001'). The code snippet of what I have tried doing…
0
votes
2 answers

How to Resolve "User Location Not Supported" Error When Connecting to palm2 API from Server in Amsterdam?

I'm encountering an issue when trying to connect to the palm2 API. When I make a request to the API from my local machine, I receive valid responses without any problems. However, when I attempt to connect to the same API from a server located in…
0
votes
0 answers

palm api credential error on docker image

Stream lit app using Palm API runs well on local. API key is set on .env file. But docker image shows API credential error while running. API_KEY = os.environ.get('api_key') import google.generativeai as palm palm.configure(api_key=API_KEY)
0
votes
0 answers

React : Unexpected token '<'

I am using the Palm API to get AI generated questions for a website. First of all, when I run my questionai2.js file, i keep getting the error:
^ SyntaxError: Unexpected token '<' at ESMLoader.moduleStrategy…
bonk
  • 33
  • 3
0
votes
0 answers

Github Actions Google Palm API No module named 'google.protobuf'

Im getting the following error when my Github actions tries to install google-generativeai for the Palm API. I tried adding pip install protobuf explicitly in the github actions yaml, added it in requirements.txt, and in my setup.py. Nothing…
Soubriquet
  • 3,100
  • 10
  • 37
  • 52
-2
votes
0 answers

Fetch error in the debug console using Google PALM API

I am trying to have just a simple Chatbot HTML interface with PALM API. I keep getting a fetch error in the debugging console and on the HTML. Running Node.JS on Server.JS and running http-server on chatbot.JS SERVER.JS const http =…
-3
votes
0 answers

Palm api response is too slow

I have been using palm API but the response from it is too slow around 30 secs. I am not giving anything complex just some "hi hello" stuff. I am not using any VPN and from India and WiFi is 20 Mbps. Are there any ways to improve response time? I…