OpenAI API Function Calling - Hands-on Tutorial for AI Developers!

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Have you struggled getting a json output from OpenAI API?
    Are you always trying to call an external API from GPT-4 API responses?
    If you are an AI Developer, Function Calling to your rescue!
    OpenAI API Function Calling - openai.com/blo...
    Colab - colab.research...
    ChatGPT API Tutorial - • How to use ChatGPT API...
    ❤️ If you want to support the channel ❤️
    Support here:
    Patreon - / 1littlecoder
    Ko-Fi - ko-fi.com/1lit...

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

  • @Rahhulh007
    @Rahhulh007 Год назад +5

    Your delivery & content are really amazing... Great work!!

    • @1littlecoder
      @1littlecoder  Год назад

      Glad you like them! Let me know after you watch the video if there's anything I could improve.

  • @KevinKreger
    @KevinKreger Год назад +1

    He's back! 🤩 and I was just working on function calls too!

    • @1littlecoder
      @1littlecoder  Год назад +1

      Oh wow! Any specific use case? Thanks for the wishes

    • @KevinKreger
      @KevinKreger Год назад +1

      @@1littlecoder a very interesting spin on an agents framework

    • @1littlecoder
      @1littlecoder  Год назад

      Indeed.

  • @laptopuser5198
    @laptopuser5198 Год назад +1

    This video is the first video link on google when searching "openai function calling"

  • @rewanthnayak2972
    @rewanthnayak2972 Год назад +3

    great work bro. you are the first indian youtuber to make videos on new ai updates ❤

  • @Baile_an_Locha
    @Baile_an_Locha 10 месяцев назад

    It’s using Celsius because you told it to default to what is used in *your* location - not the location you’re asking about.

  • @jisanson
    @jisanson Год назад +1

    could be a dumb question, but why are we not seeing an actual temperature value in the response? is it possible to get that also?

  • @ChillNaChiku
    @ChillNaChiku Год назад

    you are the best my bro

  • @harshitdtu7479
    @harshitdtu7479 Год назад

    Can you tell me how can i make chatbot for sending email i am bit confused

  • @marshalcotech
    @marshalcotech Год назад

    Interestingly, the assistant seems to just use the function output almost "as is". I'm unable to get the assistant to use the function output as context only and focus on the users actual question...
    Example: my function returns all the information about a property, and the assistant seems to just output the whole block of information instead of using it as a context/knowledge base to answer the users question. Nothing I put in the system message affects how the assistant uses the information from the function call.
    Any idea how this could be achieved?

  • @menisnothing
    @menisnothing Год назад +2

    It could be that its inferring your location rather than the location in input. Try tweaking the description in the function for that parameter. Description plays important role in functions

    • @1littlecoder
      @1littlecoder  Год назад

      Thanks, Did it give you a different result?

  • @SloanMosley
    @SloanMosley Год назад +8

    It’s very…. Functional 😂

  • @popothebright
    @popothebright Год назад

    Can you discuss how to do this from scratch without the python library? What are the API calls?

  • @aditya_p_01
    @aditya_p_01 Год назад +1

    What is the alternative thing available in langchain

  • @mpfmax0
    @mpfmax0 Год назад

    I have been using the chat completion api to get gpt-3.5-turbo to output JSON strings with the aspect, sentiment and text segment of product reviews, which I then use to build dataframes and make aspect based sentiment analysis plots and stats. I just send it 5 examples of user/assistant answer/response as a prompt. I wonder if using this would make the outputs more reliable/accurate?
    I want to understand what is the best way to conduct aspect based sentiment analysis using GPT models with openai api.

  • @vedarutvija
    @vedarutvija 9 месяцев назад

    Can you please do the same but without open ai api and the output should also be in natural language..

  • @sidharthmehra9251
    @sidharthmehra9251 Год назад +1

    Thanks for the informative video. I want to build a chatbot for my mobile application that helps users in health management. The purpose would be simply to help users with app navigation and education. I don't have any data and all tables are there in phpMyadmin. I want to use these tools like langchain, openAI and LLM's to develop my chatbot. Any help and guidance would be much appreciated.
    Regards
    Sid

  • @Imran-Alii
    @Imran-Alii Год назад +1

    @Perfect Video

  • @helix8847
    @helix8847 Год назад

    They need to change the cost for tokens within Functions, they did make it cheaper for the 4k version but reading code can be a lot of tokens.

  • @foysalmamun5106
    @foysalmamun5106 Год назад +1

    Thank you

  • @Balishhh
    @Balishhh Год назад

    Chat response 404 coming hence not able to move forward??

  • @Analyse_US
    @Analyse_US Год назад +1

    Great demo as always. Feels like OpenAI's name "Chat GPT Functions" is a little misleading. But I am not sure I can come up with a name 😂.But very cool functionality.

    • @1littlecoder
      @1littlecoder  Год назад

      Good point! Thanks for sharing. ChatGPT popularity maybe :)

  • @SH-um5bb
    @SH-um5bb Год назад

    Not working

  • @zyxwvutsrqponmlkh
    @zyxwvutsrqponmlkh Год назад +2

    All these months later and I still cant get gpt4 api. I think openai knows I secretly hate them.

    • @1littlecoder
      @1littlecoder  Год назад

      This code works without GPT-4. Generally They're soon going to remove the waitlist.

    • @ilianos
      @ilianos Год назад +1

      Funny, totally unrelated story: I was waiting as well, but missed the e-mail (mid of March) where I got the access 2 days after requesting it via waitlist... *face-palm*
      Only found out YESTERDAY, because I used a Colab where GPT-4 was pre-configured for API calls and it "magically" worked, that's how I found out 😀

    • @1littlecoder
      @1littlecoder  Год назад +1

      Haha that's nice. At least you found out then!

    • @SaadRehman-r1f
      @SaadRehman-r1f Год назад

      @@ilianos can you share it?