Questions tagged [google-generativeai]

6 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…
0
votes
1 answer

How to create a consistent response between different prompts in vertex-ai

I am trying to run the code below in a Colab notebook, where the region and sub-region are changing, there are 21 zones defined by the UNSD, and I would like a list of countries for each zone. I am trying to understand why "Western Europe" is not…
0
votes
1 answer

Prompting bison model (Google Vertex)

I am working on a web app that uses generative AI (Bison model on Vertex) to answer user questions, something like an automated Q&A page. I've fine tuned the model and I would like to submit additional information (100 Q&A) in the prompt. Is there a…
Domet
  • 1
  • 1
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

Vertex AI: Can a Prompt query a BQ table?

I have a BQ table with, say, Sales per State. Can a Vertex AI prompt query the table when a user asks for the Sales of a particular State?
denim
  • 427
  • 4
  • 16
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