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

Questions tagged [google-gemini]

The tag has no usage guidance.

google-gemini
0 votes
0 answers
12 views

Changing Gemini Browser Interface so Return doesn't Post the Question

When using (Google) Gemini in the Chrome browser (or Edge), it's normal to want to do multiline inputs. This can be done with shift-return (or equivalently shift-enter). But the tendency is so ...
GPU Programmer's user avatar
1 vote
0 answers
13 views

Passing images from browser input uploads to GoogleAIFileManager

I am building a demo on prompting with Gemini and images uploaded from the browser input utility. so on the client side - React application, the images are extracted via Html input: <input type=&...
Christopher Maduka's user avatar
0 votes
0 answers
27 views

Google Gemini (Vertex AI) Raising RECITATION errors upon Docker containerization

I'm trying to use Gemini 1.5 Flash to generate JSON data from text documents. Originally, I was running into the following issues related to copyright: Unexpected error during attempt 5: Cannot get ...
Avik Samanta's user avatar
1 vote
2 answers
42 views

Google Cloud vertex Ai PERMISSION_DENIED when accessing project

I have spent many hours trying to track down the solution to a problem with sending a (JWT/OAuth2 authorised) query (with PHP/cURL) to what I think is a GC endpoint model (see below). I keep getting ...
Dr Phil Hughes's user avatar
0 votes
0 answers
22 views

VertexAI API Error Code 13 on Specific Inputs

When using the VertexAI API, it works 80% of the time, but every fifth file being processed errors out with Error message: "Internal error encountered." Status: 500 Error code: 13. GCP docs (...
CoderOfTheNight's user avatar
0 votes
0 answers
15 views

My Android app is unable to import a com.google.mlkit library but can import others

I'm trying to implement Gemini AI in my app and I'm stuck at this point: I'm able to import com.google.mlkit.nl.smartreply.SmartReplySuggestion and com.google.mlkit.nl.smartreply.TextMessage but not ...
FractalBob's user avatar
  • 3,464
0 votes
0 answers
13 views

String searching in Google Gemini Advanced

With Google Gemini Advanced, I am using a google sheet to answer questions about the content in the sheet rows. Some of the rows/records contain multiple values. Ex. (corn, pastures, hay, black beans) ...
Lindsey Rex's user avatar
0 votes
0 answers
31 views

Error while converting my .py file to .exe file with pyinstaller

I'm trying to convert my .py file to .exe file with PyInstaller. The .py file, which worked perfectly on Jupyter lab, is not working perfectly in the exe file. This part of the code is causing the ...
조연서's user avatar
0 votes
0 answers
35 views

Mime Type for MS Excel XLSX in VertexAI API

I can successfully process Microsoft Excel XLSX files via the WebUI on GCP (https://console.cloud.google.com/vertex-ai/generative/multimodal/create/text). I can also successfully programmatically pass ...
CoderOfTheNight's user avatar
0 votes
0 answers
232 views

How do I get rid of the annoying terminal warning when using Gemini API?

I followed all the docs for the Gemini API, however, I cannot find anything that solves this issue. https://ai.google.dev/gemini-api/docs/quickstart?lang=python WARNING: All log messages before absl::...
Nathan's user avatar
  • 1
0 votes
2 answers
48 views

How to get JSON output from gemini-1.5-pro-001 using curl

How can I retrieve data in JSON format from the Gemini 1.5 API using curl? The code below works correctly: curl -H 'Content-Type: application/json' -H "x-goog-api-key: ${API_KEY}" -...
kpg's user avatar
  • 7,864
0 votes
0 answers
29 views

ValidationError: 1 validation error for GoogleGenerativeAIEmbeddings model field required (type=value_error.missing)

I am trying to integrate the GoogleGenerativeAIEmbeddings from the langchain_google_genai library into my Streamlit application. However, I am encountering a ValidationError related to missing fields ...
Vivek Raj's user avatar
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
-2 votes
0 answers
16 views

how I can access file name? code nodejs ? Google gemini [closed]

use aistudio give me files name Model sub1000146.txt sub1000142.txt sub1000143.txt sub1000144.txt sub1000145.txt use code I need more information about the types of files you're looking for in order ...
Hoàng Quốc Việt's user avatar
-7 votes
0 answers
103 views

Error when I try use Gemini API for my discord bot [closed]

When I try use the command !askai {question}, My code send a error from console. Its looking like this: WARNING: All log messages before absl::InitializeLog() is called are written to STDERR I0000 00:...
MoonVatality HUB's user avatar

15 30 50 per page
1
2 3 4 5
13