Master the Gemini API: A Node.js tutorial with real examples

Sdílet
Vložit

Komentáře • 61

  • @GoogleDevelopers
    @GoogleDevelopers  Před 3 měsíci +3

    Register to save your spot for Google I/O✨➡ goo.gle/io24-yt

  • @GoogleDevelopers
    @GoogleDevelopers  Před 2 měsíci +2

    Check out the GitHub for this episode! → goo.gle/3JGa0Lf

  • @claudioipp
    @claudioipp Před 4 měsíci +9

    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.

  • @rishavacharya7686
    @rishavacharya7686 Před 4 měsíci +6

    This is helping me build my first AI project!

  • @RylanTech
    @RylanTech Před 2 měsíci +2

    Man this is so cool! Especially being able to upload images, I look forward to developing with Gemini!

  • @shedrackaji8997
    @shedrackaji8997 Před 2 měsíci +2

    Great work mate! Thank you for making complex stuff easy

  • @rammohan2870
    @rammohan2870 Před 3 měsíci +1

    Making a fully functional react app would be great and looking forward for you to try on..

  • @shashikantvishwakarma888
    @shashikantvishwakarma888 Před 4 měsíci +3

    That's amazing buddy ❤

  • @HashimWarren
    @HashimWarren Před 3 měsíci +1

    really clear, accessible tutorial. Thanks

  • @oluwapamilerinsobiyede3846
    @oluwapamilerinsobiyede3846 Před měsícem +3

    Somebody please teach me how to like this video twice

  • @yoeldelanoval4507
    @yoeldelanoval4507 Před 4 měsíci

    thanks, great video, maybe you can add call functions examples

  • @tntg5
    @tntg5 Před 3 měsíci +2

    What software do you use to record yourself alongside your screen ?

  • @danish7335
    @danish7335 Před 4 měsíci

    I made this project last week

  • @tangocukedi1
    @tangocukedi1 Před 4 měsíci +8

    you dont need dotenv for node versions 20.6 and up

  • @mnemonija
    @mnemonija Před 2 měsíci

    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.

  • @ockiyacliff9020
    @ockiyacliff9020 Před 2 měsíci

    thank you.. for being awesome

  • @fridoper124
    @fridoper124 Před 4 měsíci +1

    Lets goooo gle🎉

  • @c_36_vinitpalsingh33
    @c_36_vinitpalsingh33 Před 3 měsíci

    Great tut. To the point and clear.
    Does gemini api have limitations? like X words per prompt or something like that?

    • @developerfilip
      @developerfilip Před 3 měsíci

      Yes - Specific models have token limits - meaning the amount of data you can send or recieve back. ☺️

  • @iPKS365
    @iPKS365 Před 4 měsíci +2

    Google best for education

  • @wasimsafdarhumma5515
    @wasimsafdarhumma5515 Před 2 měsíci

    Great! Can we also do image processing using Gemini API?

  • @medouchane8659
    @medouchane8659 Před 4 měsíci

    ❤❤❤❤❤❤

  • @brauliopf
    @brauliopf Před 3 měsíci +1

    Great video. Thank you for sharing in detail. Can you share the github link for the code? Thank you

    • @developerfilip
      @developerfilip Před 2 měsíci

      The GitHub repository with all the code is pinned at the top of the comment section!

  • @schoolbreakyay
    @schoolbreakyay Před měsícem +2

    I just have one question. how can i run this on the web like on localhost?

  • @ramasamynagappan7586
    @ramasamynagappan7586 Před 3 měsíci

    Is function calling possible using Gemini?

  • @swapnilmane1599
    @swapnilmane1599 Před měsícem

    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.

  • @kaissoune
    @kaissoune Před měsícem

    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.

  • @owonobrandon8747
    @owonobrandon8747 Před 2 měsíci

    we should somehow store the 'history' in a kind of compressed image, and hope they infer teh right context from it

  • @baluchitturi837
    @baluchitturi837 Před 4 měsíci +2

    First comment ♥️🔥

  • @ManweyVideos
    @ManweyVideos Před 2 měsíci

    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))

  • @user-vx7kq5sn3z
    @user-vx7kq5sn3z Před 3 měsíci +1

    where can i find the code?

    • @developerfilip
      @developerfilip Před 2 měsíci

      The GitHub repository is pinned to the top of the comment section! ;)

    • @user-vx7kq5sn3z
      @user-vx7kq5sn3z Před 2 měsíci

      @@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

  • @sagarchawla4926
    @sagarchawla4926 Před 29 dny

    Hey where can i get the source code for this

  • @slygrin1971
    @slygrin1971 Před 2 měsíci +1

    Sourse code?

  • @user-vx7kq5sn3z
    @user-vx7kq5sn3z Před 2 měsíci

    can someone provide the repo link?

  • @faetalize
    @faetalize Před měsícem

    doesnt show how to do streaming between backend and frontend

  • @serenaAI
    @serenaAI Před 25 dny

    Great, but where is the github link? sorry

  • @noadsensehere9195
    @noadsensehere9195 Před 2 měsíci

    where is the open source code for this

  • @user-13-g9h
    @user-13-g9h Před 4 měsíci +1

    Node……………. The likes

  • @manishindiyaar7341
    @manishindiyaar7341 Před 3 měsíci +1

    want github repo

  • @janklaas6885
    @janklaas6885 Před 2 měsíci

    📍17:00
    2📍12:00

  • @courageabenyegah4020
    @courageabenyegah4020 Před 3 měsíci

    Create

  • @JohnnyUtah269
    @JohnnyUtah269 Před 3 měsíci

    Too slow

  • @JasonEvans01
    @JasonEvans01 Před 2 měsíci +1

    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.

    • @JasonEvans01
      @JasonEvans01 Před 2 měsíci +3

      Simply renaming the .env.local file to .env resolved my issue as the API Key wasn't available in the code.

  • @MOHIT-PRASAD
    @MOHIT-PRASAD Před 3 měsíci +1

    @developerfilip hello 😃

  • @dhyaneshsiddharth5126
    @dhyaneshsiddharth5126 Před 19 dny

    $ 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