ChatGPT .NET API Client

Поділитися
Вставка
  • Опубліковано 8 січ 2023
  • In this video we use the OpenAI GPT-3 API to create “ChatGPT-like” .NET command line tool. Additionally, we deploy this as a single file app.
    🌐 Links 🌐
    💾 GitHub Repo: github.com/binarythistle/S06E...
    🎓 My other courses: lesjackson.net
    📕 My Book: link.springer.com/book/10.100...
    🤩 Patreon: / binarythistle
    🌲 Linktree: linktr.ee/binarythistle
    🔗 OpenAPI Docs: beta.openai.com/docs/introduc...
    🔗 GPT-3 Tool: gpttools.com/comparisontool
    🔗 Single File Apps: learn.microsoft.com/en-us/dot...
    ⏲️ Time Codes ⏲️
    Introduction & Theory
    - 1:17 - Welcome
    - 2:08 - Application Demo
    - 5:47 - ChatGPT Overview
    - 7:23 - GPT-3 API Docs
    - 9:23 - Create an API Key
    - 10:07 - GPT API Comparison Tool
    - 11:49 - Scaffold App
    - 15:54 - Making our 1st API call
    - 29:01 - Deserializing or JSON payload
    - 35:32 - Extracting the command prompt
    - 43:39 - Single file deployment and executable
    - 50:35 - Supporter Credits

КОМЕНТАРІ • 75

  • @Rinat.Saitov
    @Rinat.Saitov Рік тому +3

    The channel moves confidently to 100k subscribers!!! Nice work, Les! You really deserve it and much more!
    Thanks for your work full of kindness!

  • @unhandledexception1948
    @unhandledexception1948 Рік тому +5

    really love this guy, the way he presents is simply so engaging, can make any dull topic captivating

  • @Tanaka-Buchou
    @Tanaka-Buchou Рік тому +2

    Thank you, Les. You have really done well by creating such an amazing free course.

  • @karthiksreenivasan
    @karthiksreenivasan Рік тому

    Thank you very much for introducing us to the ChatGPT API and how it can be used with ChatGPT's "completions" endpoint.
    I wish you and your team nothing but success and prosperity.

  • @rmclean101
    @rmclean101 Рік тому +2

    Awesome, thank you! I hadn't seen this intro before, it is very cool.

  • @cverde1234
    @cverde1234 Рік тому +12

    I wanted to buy your new course just to support you since I like your free content. It's only 10 bucks and looks amazing. Keep being awesome!

  • @pincode7983
    @pincode7983 Рік тому +5

    Les as always perfect!🎉

  • @deepanshukumar3943
    @deepanshukumar3943 Рік тому +12

    The champ is back.

  • @davidharper8132
    @davidharper8132 Рік тому

    Thanks Les, awesome Video, Happy New Year!

  • @JamieHicks154
    @JamieHicks154 Рік тому

    Bought the course as Learning Dotnet as a Front-end Developer and your content is great, also helps that get to support a fellow Scot.

  • @jafarfatollahi6735
    @jafarfatollahi6735 10 місяців тому

    Thank you Les Jackson for this pretty cool educational and motivating video to implement some fantastic ideas.

  • @ahmadjehangir1356
    @ahmadjehangir1356 Рік тому +1

    Thank you so much for giving us LATEST knowledge everytime and making us aware about new things in the COMPUTER WORLD.
    May you progress day by day. We have learnt a lot from YOU SIR ❤️❤️

  • @abhaypandey6664
    @abhaypandey6664 5 місяців тому

    You truly are an API guru! Thank you, Les!

  • @artemartem6993
    @artemartem6993 Рік тому

    Nice tool)) Thanks a lot, Les!

  • @ibrahimhaouari6425
    @ibrahimhaouari6425 Рік тому

    Great video, and for not getting the command guess right issue the solution is to ask ChatGPT to respond with the command only by adding after user input "(respond with the command only)"

  • @Dmitry-Moiseenko
    @Dmitry-Moiseenko Рік тому

    Les, thank you for another great video!

  • @chrismcclure4264
    @chrismcclure4264 Рік тому

    You the best in the business. Keep it up.

  • @andyhunt5150
    @andyhunt5150 9 місяців тому

    Awesome man! Thanks for sharing!

  • @Vinaykumar-mysore
    @Vinaykumar-mysore Рік тому

    Awesome. Thank You Les

  • @Jishnu_Nath
    @Jishnu_Nath Рік тому

    Love the opening title

  • @tokyrak
    @tokyrak Рік тому

    Happy new year!!!

  • @jhormangarcia4937
    @jhormangarcia4937 Рік тому +1

    so thanks for this video so ilustrative

  • @aikidoshi007
    @aikidoshi007 Рік тому

    Nice! Hi from Forest Hill Les!

  • @RafCalg
    @RafCalg Рік тому

    Wonderful. Thanks.

  • @worldisone2429
    @worldisone2429 Рік тому +2

    Awesome 😀

  • @jak3f
    @jak3f Рік тому

    Sweet, got this on queue

  • @madhusudansharma344
    @madhusudansharma344 Рік тому

    Thanks for sharing your knowledge with us. You are really doing awesome work. Could you make a video on authentication and authorization in microservices?

  • @Radhakrishna-pq3yj
    @Radhakrishna-pq3yj Рік тому

    Finally. 😍

  • @tedduck800
    @tedduck800 Рік тому +1

    Good video!
    What I did was to set the temperature to 0. But then you only get the command.

  • @OdieFighter
    @OdieFighter Рік тому

    cool idea, something like this would lessen distractions whilst googling things xD

  • @InterplainMusic
    @InterplainMusic Рік тому

    I used this the other day to help me write parts of a program I developed in visual studio. A database program wrote functions and SQL queries. Amazing tool for learning. And the best part of it, is you don't have to put up with a condescending arse hole trying to make you look small..

  • @mohammadramezani1233
    @mohammadramezani1233 Рік тому

    Please more video you are the best

  • @ever-modern
    @ever-modern Рік тому

    It's Chat GPT that seems to have been living under the rock for the last two ... years. What does it mean it doesn't know Les Jackson?

  • @tulahean5334
    @tulahean5334 Рік тому

    Thanks you

  • @tsachimalik
    @tsachimalik Рік тому

    To get only the command you can add at the end of the sentence ", output only the command"

  • @AbhinavKumardns
    @AbhinavKumardns Рік тому

    My guru

  • @DimagKiDahii
    @DimagKiDahii Рік тому

    👏👏👏👏👏👏👏👏👏 Thank you !!!

  • @tamaratiny
    @tamaratiny Рік тому

    We know you wouldn't do that :))
    Thanks for the code.

  • @ahmadmasri5353
    @ahmadmasri5353 Рік тому

    Good video

  • @pontiacgtx4801
    @pontiacgtx4801 Рік тому

    why didn't you use C# 11 string interpolation to escape those chars? or even you could use System.Text.Json

  •  Рік тому

    This channel has more producers than Avatar.

  • @user-od2fz2tl7d
    @user-od2fz2tl7d Рік тому

    Like first, watching video - next

  • @technickr
    @technickr Рік тому

    Do I understand it right, that ChatGPT does not have an API right now and you are buildung on GPT-3 API only with text-davinci-003 model?

    • @technickr
      @technickr Рік тому

      bytheway, why are you showing your bearer API Key?

  • @andruhevich4641
    @andruhevich4641 8 місяців тому

    Hi guys. I have an issue. After a request to ChatGptApi I received 500 Error One or more errors occurred. (A task was canceled.). Do you know how can I fix this?

  • @hunggiap3174
    @hunggiap3174 Рік тому

    "message": "You exceeded your current quota, please check your plan and billing details. Can u help me .Please

  • @pryeshgohil3118
    @pryeshgohil3118 Рік тому +1

    The ChatGPT tool is mainly will be used for helping for references - but it can't develop full fledged system architecture - so i don't think developer jobs are at risk with this

  • @shittusulaimon2716
    @shittusulaimon2716 Рік тому

    Pls do a .net7 full api tutorial

  • @Btrninja
    @Btrninja Рік тому

    Hello me friend can I help I want to register in chat gpt does not support my country

  • @tuankiet6754
    @tuankiet6754 Рік тому

    Iam newbie and don't understand about API, what is it

  • @ytsks
    @ytsks Рік тому +1

    Could have asked ChatGPT to write your code, would've been shorter video :D :D

  • @neerajanand8567
    @neerajanand8567 Рік тому

    Can I build this in Ruby on rails?

    • @binarythistle
      @binarythistle  Рік тому +1

      You should absolutely be able to write a Ruby app that runs at the command line and does something similar. Maybe just ask ChatGPT: "how do I make a HTTP POST request with ruby" 🤣 Fundamentally that's all we're really doing here.

  • @ravindrakumartanwar2617
    @ravindrakumartanwar2617 Рік тому

    Sir imporve visibility of vedio

  • @distinguishedmoments2277
    @distinguishedmoments2277 Рік тому

    I love this guy, please adopt me

    • @binarythistle
      @binarythistle  Рік тому

      🤣 I have a hard enough time looking after myself!

  • @sevensolutions77
    @sevensolutions77 Рік тому

    Make another request to GPT and let it extract the command 😜

  • @konstantinewhite614
    @konstantinewhite614 Рік тому

    Hmmm🤔
    ------------
    using System.Windows.Forms;
    [STAThread]
    Clipboard.SetText("text");
    -------------
    No?

  • @sdwone
    @sdwone Рік тому +3

    I wonder what Les actually makes of all this? Is he concerned, like some developers, that this tool might be taking things a little too far? I.e. with our job security?

    • @binarythistle
      @binarythistle  Рік тому +11

      It's a really interesting question. At the moment, no I'm not worried about developers job security. Yes, something like ChatGPT can write bits of code, but creating an entire system I think is outside it's capabilities, (for now anyway I think!) There's also a lot more to software development that just writing code: there's human nuance, soft skills, historical context as to why an existing system was written a particular way etc...
      Or maybe this isn't me writing, and it's a bot instead...?

    • @volkerengels5298
      @volkerengels5298 Рік тому

      @@binarythistle Some they this speeds up development 10fold. 10 devs - 9 do something else tomorrow? Or an incredible growth in Software industries....
      With a rapid growing IT-Industrie - you'll leave behind the _people less smart_ totally outperformed. That's a mass....

  • @dhiraj027in
    @dhiraj027in Рік тому

    Is this free? I see there is a pricing associated with this?

    • @binarythistle
      @binarythistle  Рік тому

      As far as I can see you get free credit when you sign up (that can be used in the 1st 3 months). Then yes I think you will get charged. Current pricing here: openai.com/api/pricing/ (I've not been charged yet anyway!)

  • @eilamcohen2
    @eilamcohen2 Рік тому

    Why not ask chat gpt.....
    Write me a code to get an answer from chat gpt api that will return only code section

  • @danrulez
    @danrulez Рік тому

    Misleading title, GPT3 is NOT ChatGPT

  • @ashwinikumarshende
    @ashwinikumarshende Рік тому

    Is calling chatgpt api free?

  • @gregd6022
    @gregd6022 Рік тому

    Dude asks if chatGPT knows who he is.. then lists a zillion APs.. perfect example of what i like about ChatGPT... get ride of these vanity queens who spend an hour talking about something that can be communicated in 5 mins. they love to hear themselves talk..

  • @ricardomartinez1
    @ricardomartinez1 Рік тому

    52 minutes to create a client?

  • @yasser2768
    @yasser2768 Рік тому

    Whomever is using this tool will regret it after all when his brain becomes small and the tool becomes Paid 😂

  • @azad2096
    @azad2096 Рік тому

    this is bad news for developers!! please stop using this!! :(