Chat GPT For Games - AI Integration

$11
Publisher BitSplash Interactive
File size 5.36MB
Number of files 76
Latest version 1
Latest release date 2024-05-01 03:53:13
First release date 2023-03-08 10:28:11
Supported Unity versions 2018.4.2 or higher

This is yet another asset by Bitsplash. Check out our assets here


Integrate Chat GPT into your games with ease. Set up a chat gpt conversation in your game with two lines of code (see the image above). All latest unity versions are supported All unity platforms are supported.



If you have any questions feel free to contact [email protected]



Main features


  • Up to date: You can use GPT-4 or GPT-3.5-TURBO. Have full control over the chat gpt parameters such as Temperature,TopP,Presence_Penalty and Frequency_Penalty.

  • Secure: You have the option to use the included node js server to keep your api secret key away from hackers. The node js server also has a rate limiter so you can make sure your api is not abused

  • Well written: Full source code included. well written and commented The code is light weight , and very simple to understand

  • Quick set up: Set up a conversation quickly using only two lines of code. See the code image above to learn how.

  • 2 Tutorials: A simple tutorial to get you started. An advanced tutorial , so you can have full control over chat gpt

  • 1 NPC interaction scene: The npc gets directions and knowledge from the unity inspector. it then uses chat gpt to interact with the player. seen in the video above.

  • 2 Game Concept scenes: "Mind Reader" and trivia "True or False" seen the videos above.

  • Editor Tools - Add a chat gpt window into your editor. Use it to generate, comment and debug scritps. Designed with a one window for all aproach. Easily drag scripts from and to the project window. Here is a video tutorial showing you how to use the new window.

  • A guide: is included in the main folder of the asset. It takes you through initial setup and through advance conecpts (such as server setup)




Important notices (that other assets don't bother telling you)


  • you need to sign up for chat gpt api on https://openai.com/ you can start with the free tier.
  • When the free tier expires, calls to the chatGPT api cost a small amount of money
    • model 3.5 costs 0.002$ per 1K tokens
    • model 4 costs 0.03$ per 1K tokens
  • The chat GPT API has a rate limit. The learn more about it see this page


Top Publisher Assets