OpenAI Assistant API Tutorial With Code Examples

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ต.ค. 2024

ความคิดเห็น • 73

  • @Bangs_Theory
    @Bangs_Theory 10 หลายเดือนก่อน +7

    This was probably one of the BEST explanations on OpenAI Assistant API.

  • @nathankasa6220
    @nathankasa6220 11 หลายเดือนก่อน +8

    I never really comment on videos but just wanted to say you do a great job at explaining things and keeping it stupid simple. On top of that the extra time put into the editing to make it visually easier to comprehend. And the source file included in the description. 🙌

    • @bhancock_ai
      @bhancock_ai  11 หลายเดือนก่อน

      Hey Nathan! Thank you so much for saying that! I really appreciate it because I've been putting a lot of work into these videos.
      I have a lot more content coming out for you guys!

    • @nathankasa6220
      @nathankasa6220 11 หลายเดือนก่อน

      I can tell! This is the type of content I was thinking to make if nobody else did because it’s always content consisting of code heavy videos without real life examples or anything actually done in the whole video.
      Sometimes it’s like “what could’ve been done better” if views don’t blow up. But trust, this video was perfect. I think I followed a little while ago based off one of your other videos, probably because you explain things well. And now this one popped up on my feed when I opened the app.
      Keep at it 🙌

  • @dhrubajyotirakshit
    @dhrubajyotirakshit 9 หลายเดือนก่อน +1

    Dude..Of all the AI videos that I have read till now, this one is probably one of the best. I know it is focused on Assistance, and u killed it. So, straight forward and well explained...

    • @bhancock_ai
      @bhancock_ai  8 หลายเดือนก่อน

      Thank you so much Dhrubajyoti! I really appreciate that!

    • @dhrubajyotirakshit
      @dhrubajyotirakshit 8 หลายเดือนก่อน

      @@bhancock_ai Now you have got a responsibility to create the video on Function calling and other tools...Waiting Waiting....

  • @ZRowton
    @ZRowton 4 หลายเดือนก่อน +3

    phenomenal guide. absolutely one of the best explanations ive found.

  • @leonvanzyl
    @leonvanzyl 10 หลายเดือนก่อน +3

    Really cool video. Kudos for building a UI to visualise the process. People underestimate the amount of work that goes into videos like this.
    Keep it up bud.

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน +2

      Thanks Leon! and so true! I have a small team helping me out to make it more manageable.
      I have some more videos coming out for you guys soon!

  • @macsinvan
    @macsinvan 2 หลายเดือนก่อน +1

    Congratulations, what a creative way to demo the capabilities

  • @rccnw
    @rccnw 8 หลายเดือนก่อน

    I love how fast the narration is. I often bump up playback speed in settings. No need this time :) great tutorial, thanks.

  • @krasisl
    @krasisl 4 หลายเดือนก่อน +7

    You didn't cover the most important topic : "function calling"

  • @MiguelDiganchi
    @MiguelDiganchi 10 หลายเดือนก่อน +1

    AMAZING WAY OF EXPLAIN IT! THANK YOU VERY MUCH!

  • @omgasmurf111
    @omgasmurf111 4 หลายเดือนก่อน +2

    Very neat, I would love to see you use functions with the assistants as well tho! 👍

  • @jeansebastiencormier6008
    @jeansebastiencormier6008 3 หลายเดือนก่อน +1

    Great video. Nicely explained. Thanks

  • @osaman.abuomar5811
    @osaman.abuomar5811 2 หลายเดือนก่อน +1

    Thanks for this awesome explanation

  • @sahilkhan-dt2ln
    @sahilkhan-dt2ln 2 หลายเดือนก่อน

    Amazing, did amazing job. Best video. Keep shining

  • @thekiddace2620
    @thekiddace2620 2 หลายเดือนก่อน +1

    Subbed. I needed this. You did great at explaining it in simple terms and the visual UI to go along was the icing on the cake! Can you cover the differences with the v2 Assistant API if you havent done that yet?

    • @bhancock_ai
      @bhancock_ai  2 หลายเดือนก่อน +1

      It's on the todo list! I think I will be able to get to this in early september!

    • @thekiddace2620
      @thekiddace2620 2 หลายเดือนก่อน

      @@bhancock_ai Dope! Can't wait

  • @sealandland3959
    @sealandland3959 10 หลายเดือนก่อน +1

    Thanks alot indeed for the video! I am eagerly waiting for the new videos you kindly promised

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน

      Thanks! I've had to take a quick break but I will start churning out more videos this week! Anything in particular that you'd like to see more of?

  • @jaskaransingh4704
    @jaskaransingh4704 3 หลายเดือนก่อน

    Best open ai api explaination video

  • @maxidigital
    @maxidigital 8 หลายเดือนก่อน +1

    Excellent explanation

  • @osagiezogie
    @osagiezogie 5 หลายเดือนก่อน

    This is an awesome tutorial!! Thanks so much.

  • @imcarto
    @imcarto 5 หลายเดือนก่อน

    This is super clear, thankyou so much!

  • @raphaeldecarvalhoflorencio4018
    @raphaeldecarvalhoflorencio4018 9 หลายเดือนก่อน +1

    I also found out that it's necessary to have credits to use GPT-4, because when I clicked the 'create' button, it did nothing, and it only started working after I added credits to my account.

  • @pequod4557
    @pequod4557 19 วันที่ผ่านมา

    Will passing threads drain my openAI creds faster since it would be using more tokens as the conversation grows? Or does it truncate up to a certain depth?

  • @omerkhan7664
    @omerkhan7664 7 หลายเดือนก่อน

    Im trying to do this for my expressJs server, when I create the createRun function, it's saying thread_Id not found, is it supposed to be stored somewhere? I am making API calls to each function and passing it via an API client like insomnia but I cannot find the thread_Id anywhere.

  • @Nick__X
    @Nick__X 10 หลายเดือนก่อน

    great video - one think I was hoping to find out though was more info around actions. The custom GPT actions seem a lot more intuitive with supplying a path and auth token. The assistant actions seem a bit more confusing and less documentation and discussion around them. Info or a video about those would be amamazing. I think a lot of people are making custom gpts and then find out out you cant call those through the API.

  • @pedrojulio7539
    @pedrojulio7539 10 หลายเดือนก่อน +2

    Great explantion. Thanks a bunch. I've tried to get the source code by filling in the form with my first name and e-mail address but have had no luck in getting access. I am in Portugal; may that be an issue?

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน

      Hey Pedro! I just checked out ConvertKit and it says the the email was delivered to you at 1:06 PM EST. Maybe it’s in your spam or something? If not, shoot me a DM on X @bhancock_ai and I can shoot you the links manually!

  • @devikamujgule6888
    @devikamujgule6888 3 หลายเดือนก่อน

    this super great! would you also make one with streaming options

  • @sonny5497
    @sonny5497 5 หลายเดือนก่อน

    thanks! this was very helpful

  • @mrumer4793
    @mrumer4793 11 หลายเดือนก่อน

    love you Brandon 💕 w8ing for uR next videos . I am interested to learn Ai so I think you are best option for me

    • @bhancock_ai
      @bhancock_ai  11 หลายเดือนก่อน

      Thanks Mr umer! I have a lot more videos coming out soon!

  • @loCal-sh2if
    @loCal-sh2if 6 หลายเดือนก่อน

    I don't understand...I cannot seem to Assistant File "List" or "create" with your project. it uploads because I can see it in the "Storage" section of platform openai. For whatever reason I keep getting Error creating assistant file: TypeError: Cannot read properties of undefined (reading 'id')

    • @szymdzum
      @szymdzum 6 หลายเดือนก่อน

      There has been update to assistant API lately. Check if your Open one has v2

  • @drewsky-oz
    @drewsky-oz 10 หลายเดือนก่อน +1

    Brandon, you are so helpful and clear. Thank you. Quick question: using the Tesla example you shared, can the assistant respond utilising both the file and the openai LLM as source mixing content for the response?

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน

      Great questions! So all you have to do is adjust the instructions you provide to the assistant and instruct it to provide a hybrid response, 50% from the file & 50% from general knowledge within the LLM. Please let me know if you have any other questions! Happy to help!

  • @joaquinpadron7010
    @joaquinpadron7010 6 หลายเดือนก่อน

    Thanks a lot, this is amazing

  • @tunceryuce3631
    @tunceryuce3631 10 หลายเดือนก่อน

    Thank you. You are my hero

  • @DamCipolat
    @DamCipolat 8 หลายเดือนก่อน

    Excelent!" greath video thanks for sharing

    • @bhancock_ai
      @bhancock_ai  8 หลายเดือนก่อน

      Thanks Damian!

  • @ollieq5259
    @ollieq5259 8 หลายเดือนก่อน +1

    If I'm coding an app with multiple different users who can all individually interact with this bot (which has the same instruction for each user), would I use an assistant per user, or the same "master" assistant for all users?

    • @bhancock_ai
      @bhancock_ai  8 หลายเดือนก่อน

      Great question! You would have one master assistant. However, you would create an individual thread for each user. If you want to see this in action, I definitely recommend checking out this full stack tutorial I released a few weeks ago!
      th-cam.com/video/b1S04PFjIOY/w-d-xo.html
      Hope that helps!

    • @ollieq5259
      @ollieq5259 8 หลายเดือนก่อน

      @@bhancock_ai With this architecture is it possible to have multiple threads per user, whereby each subsequent thread is aware of the context of all previous threads (for that user)? Basically I'm thinking of an app where a user can individually talk to the AI robot (master assistant), but has a chat log per day.
      Intuitively this means a thread per day, but when a user starts a new chat for a new day (and so a new thread is created), the AI robot they're talking to has to be aware of all previous messages sent on previous days in the other threads? Is this possible?
      So basically what I'm asking is, is it possible to create a new thread with an assistant, whereby the assistant responding in this new thread is responding based off context from a set of other previous threads?

  • @lenztherapy6122
    @lenztherapy6122 11 หลายเดือนก่อน +1

    Thank you, Brandon!!!! This information is priceless!!!!! I could not find where the website that you created is located, was that something there was a link for?

    • @bhancock_ai
      @bhancock_ai  11 หลายเดือนก่อน

      Thank you 😁 and the source code link in the description will direct you to the code for the website. Please let me know if you have any other issues!

  • @Basirafeef
    @Basirafeef 6 หลายเดือนก่อน

    thanks for sharing great knowledge sir, can we have a video about new OpenAI assistant api implementation using php

    • @bhancock_ai
      @bhancock_ai  6 หลายเดือนก่อน

      I'm not really a PHP guy but I think ChatGPT 4 could help you convert the code in the video into PHP code for you!

  • @ObservingBeauty
    @ObservingBeauty 9 หลายเดือนก่อน

    Many thanks!

  • @sealandland3959
    @sealandland3959 10 หลายเดือนก่อน +1

    PYTHON...any comments regarding doing this on Python? I mean I know I can do the translation from Node JS ...

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน

      Great question! The reason I'm not the biggest fan of doing web projects in Python is because they are more difficult to deploy for others to use.
      For example, if you make a NextJS project like I did in the tutorial, you can easily deploy the project to Vercel so that thousands of people can use your project instantly.
      Please let me know if you have any other questions! Happy to help!

  • @mikekallet6218
    @mikekallet6218 10 หลายเดือนก่อน +1

    Hey Brandon .. Thanks for this. I entered my info but didn't receive the source? Is the source to the tool you were using. It looks like the perfect tool for me as I'm not a coder, but have created a very sophisticated assistant and now want to create a chatbot to us it. Hope you're tool will help. Let me know how to get it, or re-enter my info. thx

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน

      Hey Mike! When you head over to my website brandonhancock.io/ you should be able to enter in your email address and then it will automatically send you an email with links to the source code. If it is still giving you trouble, please shoot me a DM!

  • @SJT-jb9gz
    @SJT-jb9gz 9 หลายเดือนก่อน

    great video, Thanks Brandon. Just one question: we passed user entered question to message object, and triggered a Run with assistant_id and thread_id. If this Rum was completed, how do I get assistant's response? Is there any code like this: response.choices[0].message.content ?

    • @bhancock_ai
      @bhancock_ai  9 หลายเดือนก่อน

      Great question! You actually have to go back and refetch the thread once the run completes successfully.
      It would be nice if the run had that final generated message for us but they OpenAI is more focused on separating out the logic to make it super scalable for us.
      I hope that helps! Let me know if you have any other questions!

    • @SJT-jb9gz
      @SJT-jb9gz 8 หลายเดือนก่อน

      @@bhancock_ai Thanks mate. I have worked out the solution, see sample code below:
      run = openai.beta.threads.runs.retrieve(
      thread_id = threadID,
      run_id = runID
      )

      thread_messages = openai.beta.threads.messages.list(threadID)
      for msg in thread_messages.data:
      return JsonResponse({"message": msg.content[0].text.value})

  • @antdx316
    @antdx316 6 หลายเดือนก่อน

    Can you make a new one for the one that was recently released with Vector Storage?

  • @dxfirebase
    @dxfirebase 9 หลายเดือนก่อน +1

    thankyou

    • @bhancock_ai
      @bhancock_ai  8 หลายเดือนก่อน

      You're welcome!

  • @JTedam
    @JTedam 10 หลายเดือนก่อน +1

    You sound just like Bucky of the new Boston

    • @bhancock_ai
      @bhancock_ai  10 หลายเดือนก่อน +1

      Bucky is the GOAT!

  • @owaisjavaid8110
    @owaisjavaid8110 8 หลายเดือนก่อน

    Well, having said that i don't have any prior knowledge of how does this new open ai (API) world is connects, works, I can say now I have an idea in some case after watching this.
    So, Can you create one more video which can explain a unit and average cost to perform all of these functions?, take any business that needs this assistant and they want to implement this, but they don't have any ideas of how does the pricing model works, and if they do so, they maybe don't know how to optimized it.
    It will be very helpful if you crate any short video that give use an overview of pricing too.
    TIA.

    • @bhancock_ai
      @bhancock_ai  8 หลายเดือนก่อน

      Hey Owais! Great question! If I were you, I'd checkout this page here:
      openai.com/pricing
      The short answer to your question is that OpenAI is going to charge your everything.
      Every time you use ChatGPT 4, it costs you a few pennies.When you use the code interpreter, it costs a few more pennies. When you use the retrieval functionality, it costs a few more pennies.

  • @forhappy4286
    @forhappy4286 5 หลายเดือนก่อน

    Hi where is the homepage link?

  • @Samuel-zx9dw
    @Samuel-zx9dw 8 หลายเดือนก่อน

    Hi is using the assitant API free?

    • @bhancock_ai
      @bhancock_ai  8 หลายเดือนก่อน

      You can use the Assistant for free but you can only make a few request per hour. If you are going to create a project or do a lot of testing, you'll probably want to upgrade out of the free tier.

  • @AbhinavKumar-tx5er
    @AbhinavKumar-tx5er 4 หลายเดือนก่อน

    What is the need of Assistant. Can't we create our own code. I am not using assistant. What is the use of code interpreter over here