Great video! Those models are very powerful! I would love to see a new video using Next.js to create an app using Gemini in a novel way (not the classic chatGPT clone). For example: an app where, given a list of flavors, the user can add and remove items from a pizza order.
hehe, if this were with you while you were in school, you would have flunked :) I gave him the same triangle you did, only passed the problem statement with the prompt, and indeed, it worked. But i said, this must be a very common example people use with triangles, and (3, 4, 5) or (6, 8, 10) are probably the most popular sides because they are all integers. So i then gave it an isoscales triangle with sides (6, 8, x=6) to solve, but without telling it its isoscales to see if it would say not enough information. No, no complaints, probably cheated in measuring that the answer was 6, and gave me the pythagorean answer with 10^2-8^2 => x=6. Ok, it was a trick question and it riffed to come up with an explanation. So i tell it its isoscales triangle and it still falls on its face, in spite of correctly identifying which angles were the same. maybe with isoscales triangles the questions are commonly to identify an angle, but note that even math is not correct, because these things cant do math or any strict logic. they are not intelligent. Since the triangle is isosceles, we know that the two angles at the base are congruent. Let's call this angle y. We also know that the sum of the interior angles of a triangle is 180 degrees. So, we can write the following equation: y + y + x = 180 Simplifying this equation, we get: 2y + x = 180 We also know that the base angles are each equal to (180 - x)/2. So, we can write the following equation: (180 - x)/2 = y Substituting this equation into the first equation, we get: (180 - x)/2 + (180 - x)/2 + x = 180 Simplifying this equation, we get: 180 - x + 180 - x + 2x = 360 Simplifying this equation, we get: x = 180 Therefore, the value of x is 180.
Trying to get this going on Raspberry Pi. Upgraded to nodejs v-20 pasted the key into the .env.local file and am still getting invalid key error. Any ideas?
Hi, I've been trying to access it, but it redirects me through various pages and displays this message: "If you reached this page after attempting to open Google AI Studio, it may be because Google AI Studio is not available in your region, or you don't meet the age requirements (18+) for access. You can learn more about the available regions in the following section and other requirements in the terms." I am originally from the Comoros, but I am currently residing in Mayotte Island, and I am 25 years old.
Nice video, just to point out there are lots of unnecessary "await" in the source code (''await' has no effect on the type of this expression.ts(80007))
Do I need to set up billing for the API Key to work? Right now it says 'Free of charge' as its plan. When I run the gemini-pro.js file it says that my API_KEY_INVALID with a 400 status and BadRequest for its statusText.
$ node server.js Error occurred: TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11576:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async makeRequest (file:///D:/PROJECTS/New%20folder%20(2)/node_modules/@google/generative-ai/dist/index.mjs:366:20) at async generateContent (file:///D:/PROJECTS/New%20folder%20(2)/node_modules/@google/generative-ai/dist/index.mjs:801:22) at async run (file:///D:/PROJECTS/New%20folder%20(2)/server.js:12:20) Why i am getting this error while integrating Gemini AI on Node js? @GoogleDevelopers Pleqase Solve
Register to save your spot for Google I/O✨➡ goo.gle/io24-yt
Check out the GitHub for this episode! → goo.gle/3JGa0Lf
thanks
Great
Great video! Those models are very powerful! I would love to see a new video using Next.js to create an app using Gemini in a novel way (not the classic chatGPT clone). For example: an app where, given a list of flavors, the user can add and remove items from a pizza order.
This is helping me build my first AI project!
Man this is so cool! Especially being able to upload images, I look forward to developing with Gemini!
Making a fully functional react app would be great and looking forward for you to try on..
What software do you use to record yourself alongside your screen ?
Such an amazing tutorial. Clear, concise, and short.
you dont need dotenv for node versions 20.6 and up
😂 noob 😂
really clear, accessible tutorial. Thanks
Thank you for watching! We’re glad you found the video helpful.
Is it free
Great work mate! Thank you for making complex stuff easy
That's our goal here! Thanks for watching! 🤗
Great tut. To the point and clear.
Does gemini api have limitations? like X words per prompt or something like that?
Yes - Specific models have token limits - meaning the amount of data you can send or recieve back. ☺️
hehe, if this were with you while you were in school, you would have flunked :) I gave him the same triangle you did, only passed the problem statement with the prompt, and indeed, it worked. But i said, this must be a very common example people use with triangles, and (3, 4, 5) or (6, 8, 10) are probably the most popular sides because they are all integers. So i then gave it an isoscales triangle with sides (6, 8, x=6) to solve, but without telling it its isoscales to see if it would say not enough information. No, no complaints, probably cheated in measuring that the answer was 6, and gave me the pythagorean answer with 10^2-8^2 => x=6. Ok, it was a trick question and it riffed to come up with an explanation. So i tell it its isoscales triangle and it still falls on its face, in spite of correctly identifying which angles were the same. maybe with isoscales triangles the questions are commonly to identify an angle, but note that even math is not correct, because these things cant do math or any strict logic. they are not intelligent.
Since the triangle is isosceles, we know that the two angles at the base are congruent. Let's call this angle y. We also know that the sum of the interior angles of a triangle is 180 degrees. So, we can write the following equation:
y + y + x = 180
Simplifying this equation, we get:
2y + x = 180
We also know that the base angles are each equal to (180 - x)/2. So, we can write the following equation:
(180 - x)/2 = y
Substituting this equation into the first equation, we get:
(180 - x)/2 + (180 - x)/2 + x = 180
Simplifying this equation, we get:
180 - x + 180 - x + 2x = 360
Simplifying this equation, we get:
x = 180
Therefore, the value of x is 180.
I made this project last week
Google best for education
Great! Can we also do image processing using Gemini API?
Somebody please teach me how to like this video twice
click 2 times🤣
Great video. Thank you for sharing in detail. Can you share the github link for the code? Thank you
The GitHub repository with all the code is pinned at the top of the comment section!
Nice video! My question is how can I teach gemin to respond me in the format I have provided...in json only no other text like this.
That's amazing buddy ❤
I just have one question. how can i run this on the web like on localhost?
yup
Trying to get this going on Raspberry Pi. Upgraded to nodejs v-20 pasted the key into the .env.local file and am still getting invalid key error. Any ideas?
thanks, great video, maybe you can add call functions examples
Is function calling possible using Gemini?
Is this channel is made by original Google company?
Hi, I've been trying to access it, but it redirects me through various pages and displays this message:
"If you reached this page after attempting to open Google AI Studio, it may be because Google AI Studio is not available in your region, or you don't meet the age requirements (18+) for access. You can learn more about the available regions in the following section and other requirements in the terms."
I am originally from the Comoros, but I am currently residing in Mayotte Island, and I am 25 years old.
we should somehow store the 'history' in a kind of compressed image, and hope they infer teh right context from it
Lets goooo gle🎉
thank you.. for being awesome
Hey where can i get the source code for this
"and you can't commit it" - Challenge Accepted!
Nice video, just to point out there are lots of unnecessary "await" in the source code (''await' has no effect on the type of this expression.ts(80007))
where can i find the code?
The GitHub repository is pinned to the top of the comment section! ;)
@@developerfilip i could not find it can you provide a link?
im having a problem with setting up the memory and i need the repo to check how u did it
Sourse code?
doesnt show how to do streaming between backend and frontend
can someone provide the repo link?
github link please?
Do I need to set up billing for the API Key to work? Right now it says 'Free of charge' as its plan. When I run the gemini-pro.js file it says that my API_KEY_INVALID with a 400 status and BadRequest for its statusText.
Simply renaming the .env.local file to .env resolved my issue as the API Key wasn't available in the code.
First comment ♥️🔥
📍17:00
2📍12:00
where is the open source code for this
Great, but where is the github link? sorry
❤❤❤❤❤❤
Node……………. The likes
14:00
want github repo
It's pinned to the top!
Create
Too slow
@developerfilip hello 😃
$ node server.js
Error occurred: TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async makeRequest (file:///D:/PROJECTS/New%20folder%20(2)/node_modules/@google/generative-ai/dist/index.mjs:366:20)
at async generateContent (file:///D:/PROJECTS/New%20folder%20(2)/node_modules/@google/generative-ai/dist/index.mjs:801:22)
at async run (file:///D:/PROJECTS/New%20folder%20(2)/server.js:12:20) Why i am getting this error while integrating Gemini AI on Node js? @GoogleDevelopers
Pleqase Solve