Gemini API is here! Let's try it! | Basic Usage + Function Calling (Python SDK)

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • In today's video I check out Google's Gemini API for the first time.
    GitHub: github.com/unconv/gemini-testing
    Support: buymeacoffee.com/unconv
    Consultations: www.buymeacoffee.com/unconv/e...
    Memberships: www.buymeacoffee.com/unconv/m...
    00:00 Intro & Get API Key
    01:02 Installing Python SDK
    01:22 Listing available models
    03:07 Making a completion
    04:31 Sending harmful content
    07:37 Streaming responses
    09:08 Gemini Pro Vision: Images to Text
    12:20 Creating chats (simple way)
    15:33 Creating chats (hard way)
    19:53 Setting max_tokens and temperature etc.
    20:13 Migrate Function Calling AI Agent from OpenAI to Gemini
    39:00 Gemini 0 - ChatGPT 1
    41:52 Outro
  • НаукаНаука

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

  • @user-kt8vg4uq2n
    @user-kt8vg4uq2n День назад +1

    Pls do a video on how to make a simple chatbot using gemini in python, but also give it your own extra dataset and a different personality.

  • @pradeeshnarayan
    @pradeeshnarayan 5 месяцев назад

    Thank you. It was very helpful

  • @emptyname
    @emptyname 7 месяцев назад +4

    An intresting thing I found was that this is slightly different from Gemini Pro. If you ask it's name, it will not give any name. If you ask "are you powered by Gemini", it won't say it's powered by Gemini. I did manage the LLM to tell it's name once, to which it replied "Serenity"

  • @sarthakbhan1562
    @sarthakbhan1562 7 месяцев назад

    man, thanks. THANK YOU SOO SOO MUCHHHHHHH!!!!!!!

  • @aimakehappy
    @aimakehappy 7 месяцев назад

    Thank you.

  • @AyushGupta-kp9xf
    @AyushGupta-kp9xf 7 месяцев назад +1

    I am getting a 500 InternalServerException. Network Error while trying to run genai.. Is someone else too ?

  • @homerdus9668
    @homerdus9668 7 месяцев назад

    Thanks I started following your great tutorials… I would like to do many this… mainly chat with a book…. Convert pdf to text file with ocr (text is images in pdf) … detect anomalies in large text file eg. foreign words (to the language) … have double language chat e.g. German and Spanish in same chat …

  • @user-to2yv5qs9r
    @user-to2yv5qs9r 6 месяцев назад

    when i try this i get some error about authentication scope can you help me

  • @pikleman5880
    @pikleman5880 7 месяцев назад +1

    When I used Gemini, it just called all the functions I listed in the functions file. It's really in need of improvement.

  • @savire.ergheiz
    @savire.ergheiz 7 месяцев назад

    8k tokens output and not ready yet for businesses. Google did though provides regional based access albeit no european based yet.
    Overall its currently faster than cgpt although the contents somewhat need to be adjusted as required

  • @SkillCollectors
    @SkillCollectors 7 месяцев назад +1

    I made a similar video as this! After playing with this for about 24 hours, I'm finding Gemini is very buggy (chat triggering exceptions) and is suffering from a lot of hallucinations. It's been giving me links that lead to 404 pages. One example, I asked it to explain binary to me where it started off ok but then proceeded to calculate 1011 (11 in decimal) and added it backwards (left to right instead of right to left) and got 13. SMH. I'm sure they will work it out but this is not ready for general use yet. Anyone else having experiences like this?

    • @AyushGupta-kp9xf
      @AyushGupta-kp9xf 7 месяцев назад

      I am getting NetworkError. InternalServerException while trying to call any method from genai

    • @renatosoares4338
      @renatosoares4338 7 месяцев назад

      The model we use in the API is not the same on Bard. Bard is more verbose while on the API it is 'direct'. Like when we ask "what is the 3rd planet of the sun" Bard gives a more verbose answer, while the API just gives "Earth". Maybe a system prompt can make it more chat friendly.

    • @pikleman5880
      @pikleman5880 7 месяцев назад

      Yeah. And when I said "hi" to it, it just executed all the functions I gave it sequentially. It also refuses to write code for some reason for me.

  • @professorpuddle
    @professorpuddle 7 месяцев назад

    When I click get an API key the site doesn't load or it says I'm not allowed to access it or something?

    • @HariTrigger
      @HariTrigger 7 месяцев назад

      same here

    • @unconv
      @unconv  7 месяцев назад +2

      Seems that it's country restricted. Basically Europe is excluded :(
      You could try using a VPN

  • @pradipdutta7851
    @pradipdutta7851 7 месяцев назад

    Bro How much Python Knowledge Required I am beginner at Python

  • @HarmonyHouse12
    @HarmonyHouse12 7 месяцев назад

    Could you make a video showing us how to replace OpenAI with Gemini in AutoGPT? 🙏

  • @RaviTomar-ef6rg
    @RaviTomar-ef6rg 2 месяца назад

    i need to convert this using GEMINI API

  • @JOHNSMITH-ve3rq
    @JOHNSMITH-ve3rq 7 месяцев назад

    Bro why not use the debugger ? Iteration a lot faster because you keep all the state!

    • @unconv
      @unconv  7 месяцев назад

      Thanks for the tip. I'll try it out!

  • @user-jg4ci4mf8w
    @user-jg4ci4mf8w 7 месяцев назад +1

    Thanks for the video. It would help if you thoroughly read the Documentation. 😂

  • @LogicShade
    @LogicShade 7 месяцев назад

    should start making tutorials, i just learned a lot from observing you debug code.

  • @outdoorsy01
    @outdoorsy01 7 месяцев назад +1

    Then why can no one, other than youtubers seem to be able to get onto Gemini?

    • @unconv
      @unconv  7 месяцев назад

      It seems to be country restricted (basically excluding Europe)

    • @EliSpizzichino
      @EliSpizzichino 7 месяцев назад

      @@unconv I'm not able to create the API keys indeed. where do you get the info that it's not available in EU?

    • @unconv
      @unconv  7 месяцев назад

      Here: ai.google.dev/available_regions

  • @de-kat
    @de-kat 7 месяцев назад

    Is the API free ?

    • @unconv
      @unconv  7 месяцев назад +2

      Yes, for 60 queries per minute (but Google uses your data to train the model)

    • @de-kat
      @de-kat 7 месяцев назад

      What is the right of use, can I use the API in free products with in-game purchase?@@unconv