Gemini AI API with Python Latest Tutorial

preview_player
Показать описание
In this tutorial we will see how to use google's gemini ai api with python
Рекомендации по теме
Комментарии
Автор

Hi, thank you for your explanation. I have to upgrade my Python version from 3.8 to 3.10 because I got an error that said: "AttributeError: module 'google.generativeai' has no attribute 'GenerativeModel"

doch
Автор

really liked it straight to point no bs keep giving more updates on model training bro with current 1.5 gemini and what things to look out for as a free user

NasimKhanTL
Автор

This is what I was looking for. Sidhi baat no bakwass....

programme
Автор

Thanks for this 🙌. But is it free to use? or is there a limit which exceeds??

Karlseni
Автор

So this example works for 1 article that returns that article via a command prompt. Does anyone want to share some code that would loop through a list of prompts and generate many articles in txt files? Or, how else would you use this?

nateLegakis
Автор

thanks so much. this video has been very helpful and easy to follow. And it works perfectly👍

livinglegend
Автор

How do i give a different personality?
Should i use the system message option?

WilsonR-rm
Автор

Please help me. I'm doing everything as shown but in vs code i dont get the output i want it keeps saying, YOUR_RESPONSE_TEXT.
I have changed the convo.send.message to what i want ("what is meaning of ai").
It should answer this prompt but it doesn't it keeps saying YOUR_RESPONSE and YOUR_MODEL_OUTPUT. it's not answering any prompt i fill there. Please please help.
I have copied as it is code from Google in python (vscode) and also the api key is perfectly generated and inserted.

justnowi
Автор

thanks dude your video really helped me

arjitgupta
Автор

how does the chat history get saved? or do we have to add it manually?

sarthakwavare
Автор

key shows here"])

File "<frozen os>", line 714, in __getitem__
KeyError: 'my key shows here'
i got this type of key error

gagandeepsaini
Автор

Hello there, I am getting KeyError(key) in the API key line

samarthamj
Автор

Thanks for the video, it’s very helpful. How can I find the correct API endpoint for Gemini-1.5-flash and the correct fields required for the JSON payload?

hammadh
Автор

how can u run the program? the thing is it doesnt print me anything when i run it, why is that?

fiorellademedina
Автор

What about history? Is it working right? I mean does it give you answers depends of previous conversation? And do you know how long is it saving history for? Thank you!

oleksii
Автор

Thereafter this, how do we go around modifying the chatbot to our needs

ThatDunkinGuy
Автор

Does it support the image also like uploading the xray image to describe it

ajeethkumar
Автор

When i run it in the terminal it is showing



File "<frozen os>", line 685, in __getitem__
KeyError:

cyberskul
Автор

How much is the maximum usage or maximum range?

يوسفمحمد-رح
Автор

google's gemini ai api with java spring boot. i structed to add which dependency in my project

surendra_guna