Master the Gemini API: A Node.js tutorial with real examples
HTML-код
- Опубликовано: 5 июл 2024
- Within this video, you will get a step-by-step guide to leveraging the Gemini language model APIs in Node.js. @developerfilip covers everything from basic setup to advanced usage with real-world examples, designed for developers looking to integrate Gemini's capabilities into their projects.
Resources:
Make sure the check out Developer Filip → goo.gle/3xcP6Ar
Subscribe to Google for Developers → goo.gle/developers
#coding #code #geminiapi Наука
Register to save your spot for Google I/O✨➡ goo.gle/io24-yt
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!
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.
Check out the GitHub for this episode! → goo.gle/3JGa0Lf
thanks
What software do you use to record yourself alongside your screen ?
Great work mate! Thank you for making complex stuff easy
That's our goal here! Thanks for watching! 🤗
Making a fully functional react app would be great and looking forward for you to try on..
That's amazing buddy ❤
you dont need dotenv for node versions 20.6 and up
😂 noob 😂
Somebody please teach me how to like this video twice
click 2 times🤣
Great! Can we also do image processing using Gemini API?
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. ☺️
thanks, great video, maybe you can add call functions examples
Is function calling possible using Gemini?
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.
really clear, accessible tutorial. Thanks
Thank you for watching! We’re glad you found the video helpful.
Is it free
I made this project last week
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.
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!
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.
Lets goooo gle🎉
Google best for education
thank you.. for being awesome
I just have one question. how can i run this on the web like on localhost?
yup
can someone provide the repo link?
Sourse code?
First comment ♥️🔥
Hey where can i get the source code for this
doesnt show how to do streaming between backend and frontend
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))
❤❤❤❤❤❤
we should somehow store the 'history' in a kind of compressed image, and hope they infer teh right context from it
where is the open source code for this
Great, but where is the github link? sorry
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
want github repo
It's pinned to the top!
Create
Node……………. The likes
📍17:00
2📍12:00
Too slow
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.
@developerfilip hello 😃