Get better results using the OpenAI Tool Node

Поділитися
Вставка
  • Опубліковано 18 лют 2024
  • This will walk you through how to effectively use the OpenAI Tool Node and adds clarity between the Tools Node and Register Intent Node. These nodes allow you to call GPT and leverage the Function Calling Feature from OpenAI's API. The Tool's node provides an easy, convenient and reusable way to implement function calling.
    Export Automations from Chaperone:
    - www.technithusiast.com/chaper...
    Helpful Links
    - Enjoying the content? Buy me a ☕️: bmc.link/mmontaque
    - Or join this channel to get access to perks:
    / @technithusiast
    - Function Calling Documentation: cookbook.openai.com/examples/...
    - AI-Intent Tutorial: • Easily use ChatGPT in ...
    - Call/Register Intent Tutorial: • These Useful new nodes...
    Music
    - Oh, Mega! By Suiteniss - FVV98JYF3G7YXAPA
    - Garden Song by Shimmer - 3WZRIMSAPFS5PRYL
    - Yellow Letter by Sam Barsh - XS3T2THK6UHIRUVU
    Gear I used for this video
    - Sony A7S iii: www.amazon.com/Sony-Mirrorles...
    - Aputure Light Dome: www.amazon.com/gp/product/B08...
    - Aputure Amaran 200X S: www.amazon.com/gp/product/B0B...
    - Neewer Heavy Duty Light Stand: www.amazon.com/gp/product/B08...
    DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting me so I can continue to provide you with dope free content!
  • Наука та технологія

КОМЕНТАРІ • 18

  • @Cra1gst
    @Cra1gst 4 місяці тому +1

    Great video i love how you explain the way you go through step by step even bits the don't work

  • @RealLeadership
    @RealLeadership 2 місяці тому +1

    Love this content! I feel like my smarthome is evolving from software 1.0 (reference Tesla AI day) to 2.0. It is probably on 1.2 right now but that is alot thanks to your content!

    • @technithusiast
      @technithusiast  2 місяці тому

      Lolol I’m glad the content is helping with the upgrade ✌🏾

  • @sdfhjklhsfdjdsflhkds
    @sdfhjklhsfdjdsflhkds 4 місяці тому +1

    Thanks for this. This looks super powerful! I'm going to have to reflect on my current flows and see where this could enhance my automations. Great food for though as always.

  • @ITZOTF
    @ITZOTF 4 місяці тому +1

    I’ve been following this from the very beginning and I really can’t explain how much I enjoy this project. I had this exact idea before ChatGPT was released and would hand write every response since I tend to just always say the same things for what I want. But this really has exceeded my expectation. Also loves that it itches the problem solver in me. Would you happen to have any more documentation on the callback service and inline more importantly resizing they keyboard keys and using callbacks to confirm and existing command. No answer please just breadcrumbs. The learning is the best part.

    • @technithusiast
      @technithusiast  4 місяці тому +1

      Hey 👋🏾 I’m glad you you’re enjoying the series! Sure I’d like to help where I can 😁Can you elaborate a little more about what you mean when you referenced the callbacks, inlines, and resizing keyboard keys? I’m not sure I completely followed.

    • @ITZOTF
      @ITZOTF 4 місяці тому

      @@technithusiast Yes! Ill break it into two comments. Back in Ep. 5 you mentioned the buttons. I am trying to configure the buttons to create a confirmation feature so EV3Y (My "KE") doesn't get to "frisky with my smarthome". I have figured out how to generate buttons using a slightly altered version of the Telegram Facade, but now its linking the telegram_callback service to continue the currently running automation.

    • @ITZOTF
      @ITZOTF 4 місяці тому

      @@technithusiast The second is just cosmetics. I notices that when i set the "Keyboard Key" value in the Telegram Facade that buttons its generates take up the entire size of the keyboard. I cant seem to find any documentation on resizing the buttons to be a little neater. I want to give EV3Y a similar UI to the BotFather.

    • @technithusiast
      @technithusiast  4 місяці тому +1

      Ahh ok i think i understand. I cant go into depth here but I used this to get a an understanding on how the sendMessage command works: core.telegram.org/bots/api#sendmessage The keyboard parameter can take an array of arrays which can alter how the buttons look. For the callbacks, node red can pick up information from the callback by listening to specific events types. Check the Event Triggering section of this doc: www.home-assistant.io/integrations/telegram_bot/ If you want to get an experience similar to the bot father you will need to save the chat/message id so you run the edit message command to update the buttons. You will mostlikely need to save the information in global context.
      Hope this helps!

    • @ITZOTF
      @ITZOTF 4 місяці тому

      First of all, thank you for the quick replies-I didn't expect them! I had the same idea when I read the article in Chaperone on Global Context, but the 'Modify Context' node in the Context Subflow always returns a type error when trying to set the key. I have tried looking the function over myself but I was sure there was something that i overlooked.
      "TypeError: Cannot set properties of undefined (setting 'testKey')"
      I'd like to also add that following this series has taught me more about JSON and JavaScript than I learned in school. Most of my IT work can be automated using Python, which is how I originally built EV3Y. However, this series has forced me to finally learn Java, and it's been great. I've actually been able to recreate some of my most-used programs using Java instead of Python. It's a little more stressful to debug, but it's so much more rewarding when it works.

  • @fdelacou
    @fdelacou 4 місяці тому +2

    19:00:00Z is Zulu Time. So... That would make the reminder for noon Central Time!? Not quite the evening... You didn't specify the timezone so not sure if it assumed that you were at GMT+0... which might not be correct.

    • @technithusiast
      @technithusiast  4 місяці тому

      Good eye!! But It’s in ISO format so it’s a bit misleading. The Z stands for “Zero timezone” which means it’s offset by 0 from UTC

    • @fdelacou
      @fdelacou 4 місяці тому +1

      @@technithusiast btw, love your videos and like all of them. The Z means Zulu and yes could be interpreted as zero time zone. It’s the term used in aviation and by the army. It’s from the phonetic alphabet. ISO8601 that defines dates format adopted the notation as a short hand. But on your example, did chat gpt assumed you were providing the time in GMT+0 or did you specify it? If you specified it then it works if not, chat gpt failed to recognize the offset of your timezone in the calculation of the reminder and you might be reminded between 10am and 1pm! :-D

    • @technithusiast
      @technithusiast  4 місяці тому

      Interesting point. I didn't really specify the timezone but I did tell it to use ISO format. When servers/cloud services deal with time, they always default to ISO which uses UTC (unless told otherwise). The time it return was definitely in ISO format so it was in UTC but you do have a point! I did not specify a timezone and as a result GPT assumed the date/time i gave it in the prompt was in UTC which mean that the time it gave me back was correct if i lived in UTC but in reality if my system tried to convert it to my timezone it would be wrong! Fantastic catch 👍🏾 Very observant!