How To Make ChatGPT NPC In Unity - Tutorial

Поділитися
Вставка
  • Опубліковано 1 лип 2023
  • How can we get a response from a player input ? Let's find out !
    ❤️ Support on Patreon : / valemvr
    🔔 Subscribe for more Unity Tutorials : www.youtube.com/@ValemTutoria...
    🌍 Discord : / discord
    🐦Twitter : valemvr?lang=en
    👍 Main Channel : / @valemvr
    🔥 Tiktok : / valemxr
    ...................................................................................
    Watch the "Making Chat GPT NPC in my Game"
    • Can Chat GPT replace t...
    Open AI - Unity Github
    github.com/srcnalt/OpenAI-Unity
    credentials :
    {
    "api_key" : " ",
    "organization" : " "
    }
    Open AI sign in : openai.com/product
    Open AI Key and Organization : platform.openai/account/api-keys
    Open AI Pricing : openai.com/pricing
    Asynchronous Operation Better Explained : / asynchronous-operation...
    ····················································································
    📝Best VR Assets ( These links are Affiliate links which means it costs the same to you and I get a small commission. Thanks for your support!)
    VR Interaction Framework
    assetstore.unity.com/packages...
    Hexabody (Physics VR Player)
    assetstore.unity.com/packages...
    Mirror and Reflection for VR
    assetstore.unity.com/packages...
    Auto Hand (automatic hand grab pose)
    assetstore.unity.com/packages...
    Hurricane VR (vr physics interaction)
    assetstore.unity.com/packages...
    3d Hand Model for VR
    assetstore.unity.com/packages...
    ····················································································
    Full Series on How to make a VR game • How to Make a VR Game ...
    ····················································································
    If you enjoyed this video, here are some other really good channel you should appreciate :
    ⌨️ Game Dev
    Brackeys : / @brackeys
    Dani : / @danidev
    Code Monkey : / @codemonkeyunity
    👨‍🎓 Vr Dev
    Justin P Barnett : / @justinpbarnett
    Vr with Andrew : / @vrwithandrew
    ····················································································
    #vr #vrdev #madewithunity

КОМЕНТАРІ • 76

  • @filipkrupa9691
    @filipkrupa9691 3 місяці тому +3

    I was searching exactly this, keep going, awesome

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

    Thanks for sharing, this is awesome, and very easy to achieve.

  • @necatron73
    @necatron73 5 місяців тому +4

    It would be great to implement some of this into vrchat. Most of my ai's are simple follow or head follow models.

  • @pratyushjain5344
    @pratyushjain5344 11 місяців тому +4

    Hey Valem big fan of your videos and tutorials
    I saw in your post about the chat gpt npc that you were using Amazon poly for text to speech
    Was there any particular reason as to why you didnt use Voice sdk from Oculus it gives the same funtionality without needing to pay anything

  • @itox8924
    @itox8924 6 місяців тому +1

    To produce with the Oculus version, do I need to place the .openai folder and auth.json file in Oculus?

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

    Thx for the video ! It works perfectly ! You can just skip the json file with the api_key and put it directly in the function OpenAIApi(string apiKey, string organization)

  • @nickframe710
    @nickframe710 11 місяців тому +7

    Hi Valem, your tutorials are fantastic and they're helping me a lot. I have a question: do you have any ideas on how to create an inventory system for VR? I'll leave this idea for a future VR tutorial since there's practically nothing on UA-cam that uses a modern system like XR Toolkit.

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

      Any games in particular that implement an inventory system in VR that you are hoping to replicate?

  • @user-si5vw9zu8h
    @user-si5vw9zu8h 4 місяці тому

    Does it work if I put the name of my model that is FINE-TUNED in chatpt when I put the model name?

  • @nah131
    @nah131 14 днів тому

    hi I have question, what if I commit the API_key to github in a VR Unity project? how can I protect the key?

  • @Tyke18
    @Tyke18 6 місяців тому

    Excellent tutorial, thanks! To those who say they have problems with auth.json not being found, if u actually watched the video carefully you'll see there's a workaround.

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

      And That Is?

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

      @@-Techtip- put your api key directly in the brackets when you declare the openAI object in your code. but don't share your code if u do this as anyone can use your key.

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

      @@Tyke18 thx!

  • @remzire
    @remzire 3 місяці тому +1

    C'est dingue comment on perçoit le côté français bien que tu gères l'accent, bonne vidéo 😉

  • @ScreamingFoxMemes
    @ScreamingFoxMemes 11 місяців тому +3

    Can you make a tut on how to make avatar customisation plz

  • @hakan19041
    @hakan19041 11 місяців тому

    finally! can you tell when the 2 Part will be out?

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

      its already out on patraon paid section

  • @shieldgames3241
    @shieldgames3241 24 дні тому

    What should be done if there is a sound while talking?

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

    What would be cool is if you could voice chat to it and it would voice chat back with lip movement!

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

    Hey very nice video, do you know or have found a Description how to generate an ai Modell with own data und use it in unity like in the video?

    • @messengercreator
      @messengercreator 7 місяців тому

      u shall asking I'll introducing AI CHAT DEEPAI the AI CHAT DEEPAI is so powerful and much better than OPENAI since start 2015-2018 and u can show ur picture and video and anything u want

    • @LaveshNK
      @LaveshNK 3 місяці тому

      Probably use something like LangChain for this and build your own RAG implementation

  • @user-si5vw9zu8h
    @user-si5vw9zu8h 10 місяців тому +1

    If I follow the tutorial well and play the game
    "Error Message: You exceeded your current quota, please check your plan and billing details.
    Error Type: insufficient_quota"
    This error appears. Can you tell me the solution?

    • @xulipaTV
      @xulipaTV 10 місяців тому +1

      You used all your tokens. You need to buy more.

    • @regulus7754
      @regulus7754 6 місяців тому

      ​@@xulipaTVI I have over 40 dollars worth of tokens but I still get the same error

  • @XboxPlayerPL
    @XboxPlayerPL 11 місяців тому +3

    is there a real time voice cloning solution that I can use in VR oculus game?

    • @fofoasiri404
      @fofoasiri404 8 місяців тому +1

      Did you know?

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

      You will have to look into eleven labs for that

  • @mohamedaminemacherki4533
    @mohamedaminemacherki4533 11 місяців тому

    you are the best thank you 💌

  • @what8586
    @what8586 7 місяців тому +2

    any videos on using a local llm maybe using ooba-booga

  • @patriciocastillo8457
    @patriciocastillo8457 5 місяців тому +7

    Error Message: You exceeded your current quota ok ok is not free ://

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

    PLEASE, can you make a tutorial on how build the oculus game (with hand tracking) for PC? Why everybody makes tutorials only for android builds? I have a game with hand tracking that works in play mode but not in the build. Whyyy? I'm desperate!

  • @SirFox5280
    @SirFox5280 9 місяців тому +3

    Unity can't seem to find my auth.json file. Am I missing something? It's in the exact location C/Users/Myself/.openai/ I'm just getting errors that it can't find the authenticator.

    • @fofoasiri404
      @fofoasiri404 8 місяців тому +1

      هل عرفت حل لمشكلتك

    • @zyz5114
      @zyz5114 8 місяців тому +1

      The same problem to me. Do you have a solution?

    • @SirFox5280
      @SirFox5280 7 місяців тому

      @@zyz5114 I did the "brute force" solution where I parsed my ID in the C# code. Along with that, I had to install git. That seemed to fix it for me

    • @messengercreator
      @messengercreator 7 місяців тому

      u don't worry about that I'll introducing AI CHAT DEEPAI the AI CHAT DEEPAI is so powerful and much better than OPENAI since start 2015-2018 and u can show ur picture and video and anything u want

    • @messengercreator
      @messengercreator 7 місяців тому

      @@zyz5114 u don't worry about that too I'll introducing AI CHAT DEEPAI the AI CHAT DEEPAI is so powerful and much better than OPENAI since start 2015-2018 and u can show ur picture and video and anything u want

  • @Gavin_fr
    @Gavin_fr 11 місяців тому

    😮

  • @eslorex
    @eslorex 11 місяців тому +2

    Steam banning AI text and Art included in game. I wonder if using GPT is also a reason

    • @Pauluz_
      @Pauluz_ 7 місяців тому

      I hope that nope

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

    How can set language to hindi

  • @startek119
    @startek119 Місяць тому

    IS anyone else having trouble importing the package from github?

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

    where is yesterdays tut?
    also can you make a vr web swinging tut? its ok if not

  • @itox8924
    @itox8924 7 місяців тому +1

    How do I get him to speak Korean?

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

    It's not really an NPC to be honest. It's just a GPT model chat in Unity wrapper - not much else.
    It starts to be way more funny, when you try to provide the context for dialogue and limit number of choice player can make and especially make previous choices in different dialogues matter.

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

    We need mac tutorial.

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

    are you french?

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

    Are you french ?

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

    Salut, je viens de décourvrir la chaine, son contenu est impec et tout sauf une chose, mec ton accent anglais est horrible lol, si tu avais fait tes tutos en français ça aurait été mieux, enfin c'est mon avis et çe ne m'engage que moi, à part ça tu fait du très beau boulot, un grand merci pour cela. Et surtout ne m'en veux pas pour l'accent mdr, c'était juste pour rire mdr, mais sérieux, songe à faire des tutos en Français ça ira mieux je crois :P

    • @DELottProductions
      @DELottProductions 3 місяці тому +1

      Son accent anglais est pas horrible et je le comprends facilement. Je pense que s'il parlait plus vite ce serait mieux. Son accent francais est evident mais c'est pas une probleme parce que son prononciation est fantastique.

    • @MrReallefauve
      @MrReallefauve 3 місяці тому

      @@DELottProductionsMerci de prendre la parti de Valem même si c'est inutile, j'ai bien précisé que c'était rien d'autre qu'une taquinerie, vous auriez deviné cela si vous aviez bien lu mon poste :P Bref, oui l'accent français est très fort ce qui fait le charme des ces vidéos, mais je maintiens le fait que si il ferait des vidéos en Français il aurait bien plus d'audience

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

  • @DojjoyTheDeveloper
    @DojjoyTheDeveloper 11 місяців тому

    FIRST LUV UR TUTS

  • @messengercreator
    @messengercreator 7 місяців тому +1

    if u want much explainer and understand quickly guys I'll introducing AI CHAT DEEPAI the AI CHAT DEEPAI is so powerful and much better than OPENAI since start 2015-2018 and u can show ur picture and video and anything u want

  • @insertusername576
    @insertusername576 11 місяців тому

    early

  • @Noah-ud9qo
    @Noah-ud9qo 11 місяців тому

    Yo

  • @vikramchandranarra4385
    @vikramchandranarra4385 7 місяців тому +1

    This guy is the biggest scammer I've seen in my life.

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

      learn how to read the documentation for packages you're planning on using instead of blaming others for your stupidity.

  • @gjsksn
    @gjsksn 7 місяців тому +1

    This guy is scammer, none of the tutorials are working, and after u paid money, still not working, lack of explanation, lots of errors, and never share the tutorial from the begining(which is biggest problem, i want to start from setting,- to build game so i can actually have knowdlge what i need to download or set it before start it.

  • @setop123
    @setop123 12 днів тому

    Gros bosses ton accent un peu, c'est la honte

  • @user-ro3fm4ud2v
    @user-ro3fm4ud2v 3 місяці тому +1

    I have an error “JsonReaderException: Unexpected character encountered while parsing value: