Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [google-generativeai]

The tag has no usage guidance.

google-generativeai
0 votes
1 answer
25 views

What is the Python code to check all the GenerativeAI models supported by Google Gemini?

Being new to GenerativeAI world, I am trying to load a pre-trained text generation model and doing some stuff which is not working. This is how I load the GenerativeAI model. from vertexai....
RLD's user avatar
  • 1,957
0 votes
0 answers
33 views

How to evaluate LLM response [closed]

I am retrieving response using QWEN 72B model. I want to validate my response and don’t have ground truth answers. How can I evaluate my response without help of ground truth answers. I want to use ...
Prashanth Kolaneru's user avatar
0 votes
0 answers
15 views

How to avoid regenerating same component in builder io

I have uploaded/imported 2 figma in builder io. One is landing page and another is inner page and generate code in builder io but that creates 2 same component for Header and Footer as that is common ...
Abhijit's user avatar
  • 81
0 votes
1 answer
44 views

How to pass online images to Gemini model?

I try to use Gemini model to generate descriptions for online images, but failed at the converting Pillow iamge format to vertext ai image format. Running below code encounters this error: ...
Koala S's user avatar
0 votes
0 answers
48 views

Unable to restrict Generative Language API Key on Google Cloud

I have an Android app that uses Generative Language API from Google Cloud. As a best practice, I must restrict my Android app's API key. So I added the package name and SHA-1. Now, all the calls to ...
kaigalmane's user avatar
0 votes
0 answers
14 views

How to use ComfyUI for running stable diffusion models?

I wan to know if there is a way in which without much GPU utilization, one can use ComfyUI for garment imposition on another image. I have until now watched few YT videos but most of them are ...
JaS's user avatar
  • 33
0 votes
1 answer
122 views

Google generativeai 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT"

I have tried the simple POC for generativeai on its own to do 'generate_content' and it works. Now I am trying to integrate the generativeai to existing project and just trying to get the model only ...
Win Myo Htet's user avatar
  • 5,449
0 votes
0 answers
39 views

How to determine the text responsible for Google Gemini `block_reason: OTHER`?

I've spent a long time setting up Google Gemini. Now that I've: Setup a Google Workspace Connected a GCP Billing Account (If you don't do this, you'll receive Status 429 exceeds quota(?)) Ect. ...
ericOnline's user avatar
  • 1,867
-1 votes
1 answer
46 views

Google generativeai Kivy Andriod app crach at launch due to grpc

I am building a kivy app with integration of google-generativeai. I used buildozer to compile for Android. The compilation was successful but the app crashed when launching. Error: 07-08 19:33:51.220 ...
Jesscralett's user avatar
0 votes
0 answers
78 views

google-generativeai installed yet I get error: No module named 'google'

I am running this simple Python script; # Install from PyPI. # pip install -U google-generativeai # Import the SDK and configure your API key import os import google.generativeai as genai genai....
tryflyhi's user avatar
0 votes
2 answers
103 views

Gemini API : Code returning error GenerativeModel.generate_content() got an unexpected keyword argument 'temperature'

import google.generativeai as genai def query_gemini(model_name="models/chat-bison-001", temperature=0.7, top_k=40, top_p=0.95, max_output_tokens=1024): """Configures ...
Jacob's user avatar
  • 11
1 vote
1 answer
35 views

Builodzer generative ai import bug

I am building android apk using buildozer, but the apk crashes when i open it on my android device. The problem is with importing google-generative ai in my main.py. Here is the full code: Main.py ...
Mad_dog_123's user avatar
1 vote
1 answer
237 views

Gemini Advanced can but API cannot read links?

I was giving a prompt containing a link to https://gemini.google.com/ and it successfully gave me the result. (Worked with both Gemini and Gemini Advanced). But when I do the same via https://...
RukshanJS's user avatar
  • 926
0 votes
1 answer
273 views

GCP Gemini API - Send multimodal prompt requests using local image

On this page Google shows a sample code on how to send multimodal prompt requests (image + text). import vertexai from vertexai.generative_models import GenerativeModel, Part # ...
Matheus Torquato's user avatar
0 votes
0 answers
10 views

how to check which quota is needed in Google Cloud

I am writing a biblebot that lets GenAI read the bible and is then available to answer queries. Doing it on Google Cloud using the Generative Language API. In my python script, the "...
Thorsten Staerk's user avatar

15 30 50 per page
1
2 3 4 5 6