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
  • НаукаНаука

Комментарии • 60

  • @GoogleDevelopers
    @GoogleDevelopers  2 месяца назад +3

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

  • @rishavacharya7686
    @rishavacharya7686 3 месяца назад +6

    This is helping me build my first AI project!

  • @RylanTech
    @RylanTech Месяц назад +2

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

  • @claudioipp
    @claudioipp 3 месяца назад +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.

  • @GoogleDevelopers
    @GoogleDevelopers  2 месяца назад +2

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

  • @tntg5
    @tntg5 3 месяца назад +2

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

  • @shedrackaji8997
    @shedrackaji8997 Месяц назад +2

    Great work mate! Thank you for making complex stuff easy

  • @rammohan2870
    @rammohan2870 3 месяца назад +1

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

  • @shashikantvishwakarma888
    @shashikantvishwakarma888 3 месяца назад +3

    That's amazing buddy ❤

  • @tangocukedi1
    @tangocukedi1 3 месяца назад +8

    you dont need dotenv for node versions 20.6 and up

  • @oluwapamilerinsobiyede3846
    @oluwapamilerinsobiyede3846 Месяц назад +3

    Somebody please teach me how to like this video twice

  • @wasimsafdarhumma5515
    @wasimsafdarhumma5515 Месяц назад

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

  • @c_36_vinitpalsingh33
    @c_36_vinitpalsingh33 3 месяца назад

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

    • @developerfilip
      @developerfilip 3 месяца назад

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

  • @yoeldelanoval4507
    @yoeldelanoval4507 3 месяца назад

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

  • @ramasamynagappan7586
    @ramasamynagappan7586 2 месяца назад

    Is function calling possible using Gemini?

  • @swapnilmane1599
    @swapnilmane1599 26 дней назад

    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.

  • @HashimWarren
    @HashimWarren 3 месяца назад +1

    really clear, accessible tutorial. Thanks

  • @danish7335
    @danish7335 3 месяца назад

    I made this project last week

  • @mnemonija
    @mnemonija 2 месяца назад

    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.

  • @brauliopf
    @brauliopf 3 месяца назад +1

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

    • @developerfilip
      @developerfilip 2 месяца назад

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

  • @kaissoune
    @kaissoune 15 дней назад

    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.

  • @fridoper124
    @fridoper124 3 месяца назад +1

    Lets goooo gle🎉

  • @iPKS365
    @iPKS365 3 месяца назад +2

    Google best for education

  • @ockiyacliff9020
    @ockiyacliff9020 Месяц назад

    thank you.. for being awesome

  • @schoolbreakyay
    @schoolbreakyay 28 дней назад +2

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

  • @user-vx7kq5sn3z
    @user-vx7kq5sn3z 2 месяца назад

    can someone provide the repo link?

  • @slygrin1971
    @slygrin1971 Месяц назад +1

    Sourse code?

  • @baluchitturi837
    @baluchitturi837 3 месяца назад +2

    First comment ♥️🔥

  • @sagarchawla4926
    @sagarchawla4926 8 дней назад

    Hey where can i get the source code for this

  • @faetalize
    @faetalize Месяц назад

    doesnt show how to do streaming between backend and frontend

  • @ManweyVideos
    @ManweyVideos Месяц назад

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

  • @medouchane8659
    @medouchane8659 3 месяца назад

    ❤❤❤❤❤❤

  • @owonobrandon8747
    @owonobrandon8747 Месяц назад

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

  • @noadsensehere9195
    @noadsensehere9195 Месяц назад

    where is the open source code for this

  • @serenaAI
    @serenaAI 3 дня назад

    Great, but where is the github link? sorry

  • @user-vx7kq5sn3z
    @user-vx7kq5sn3z 2 месяца назад +1

    where can i find the code?

    • @developerfilip
      @developerfilip 2 месяца назад

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

    • @user-vx7kq5sn3z
      @user-vx7kq5sn3z 2 месяца назад

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

  • @manishindiyaar7341
    @manishindiyaar7341 3 месяца назад +1

    want github repo

  • @courageabenyegah4020
    @courageabenyegah4020 3 месяца назад

    Create

  • @user-jt7fq5ib2k13
    @user-jt7fq5ib2k13 3 месяца назад +1

    Node……………. The likes

  • @janklaas6885
    @janklaas6885 Месяц назад

    📍17:00
    2📍12:00

  • @JohnnyUtah269
    @JohnnyUtah269 3 месяца назад

    Too slow

  • @JasonEvans01
    @JasonEvans01 Месяц назад +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 Месяц назад +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 3 месяца назад +1

    @developerfilip hello 😃