How To Make ChatGPT NPC In Unity - Tutorial

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 100

  • @filipkrupa9691
    @filipkrupa9691 10 місяців тому +8

    I was searching exactly this, keep going, awesome

  • @necatron73
    @necatron73 Рік тому +6

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

  • @PourRienDire
    @PourRienDire 9 місяців тому +1

    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 Рік тому +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 Рік тому

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

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

    organization key is now found in general on user settings :)

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

    I wanted exactly like this. Thanks man!!!!

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

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

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

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

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

    I want part 2 but I can't find the video.. patreon is off!!

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

    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- Рік тому

      And That Is?

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

      @@-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- Рік тому

      @@Tyke18 thx!

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

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

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

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

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

    Nice and simple. ( I was using the OKDoIt Open AI API, but this seems simpler)

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

    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

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

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

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

      Did you know?

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

      You will have to look into eleven labs for that

    • @officialswAmp
      @officialswAmp Місяць тому +1

      Elevenlabs text to speech api

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

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

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

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

  • @Gazer-x5s
    @Gazer-x5s 7 місяців тому

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

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

    Im curious, would this work if the user was speaking to the NPC instead of typing?

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

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

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

      I hope that nope

  • @권승준-g7m
    @권승준-g7m Рік тому

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

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

    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 Рік тому +1

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

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

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

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

      @@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 Рік тому

      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 Рік тому

      @@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

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

    That's cool , but how do you get it to have full animation control and navigation control like full autonomous Like isn't there a way to hook it up to a needs based State machine player controller?Or something

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

      You can tell chat got to return a json format. You can make a json field hold animation states. In your Unity side scripting you can can if the returned JSON animation field has a value assign that to that characters animator

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

    Can I train chat gpt on specific information to say when another person is interacting with the npc

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

      Yes look into building an ai agent.

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

    im thinking doing the same thing but in vr.

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

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

  • @권승준-g7m
    @권승준-g7m Рік тому +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 Рік тому +1

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

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

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

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

      @@xulipaTV i bought more and still get the error, any fix?

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

    Does it require good internet connection?

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

    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.

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

    When I drag the empty game object to the "On End String" my function doesn't show up

  • @patriciocastillo8457
    @patriciocastillo8457 Рік тому +10

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

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

      is there any work around ? I am also getting this error , even with a new account

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

      @@Wonder_Verse_Tech me too, I have money on my account but still get the error, any fix?

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

      @@Wonder_Verse_Techyou need to put some money into the acccount, it’s very very cheap even $1 will get you like 100+ calls

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

    you are the best thank you 💌

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

    How to create .openai folder in Mac Os system.

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

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

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

    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!

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

    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 Рік тому

      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 10 місяців тому

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

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

    How do I get him to speak Korean?

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

      Send him to live in korea.

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

    just to guide people in the right direction I'm gonna say the keyword ....Convai.

  • @Youssef-356
    @Youssef-356 3 місяці тому

    is it possible with gpt 2 ? free

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

    IS anyone else having trouble importing the package from github?

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

    How can set language to hindi

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

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

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

    We need mac tutorial.

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

    are you french?

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

    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 11 місяців тому +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.

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

      @@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

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

    im broke

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

    😮

  • @messengercreator
    @messengercreator Рік тому +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

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

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

    FIRST LUV UR TUTS

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

    early

  • @Noah-ud9qo
    @Noah-ud9qo Рік тому

    Yo

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

    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.

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

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

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

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

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

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

  • @ИгорьРоманов-т6х
    @ИгорьРоманов-т6х 10 місяців тому +1

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

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

    Are you french ?