Skip to content

Latest commit

 

History

History
71 lines (36 loc) · 3.1 KB

README.md

File metadata and controls

71 lines (36 loc) · 3.1 KB

Unity OpenAI-API Integration

Twitter Follow Twitter Follow Medium.com Twitter Follow Support

Integrate openai GPT-3 language model and ChatGPT API into a Unity project.
It can be a useful way to add natural language processing capabilities to your application.

notice

Note: 
I am unable to complete this project further because my OpenAI API key credits have been expired😥

Now onwards, you are the captain🧢 of this project. I want you to sail🚢 it towards success.

Installation

(1) Obtain an API key for the OpenAI API. You will need this to make requests to the API.

https://beta.openai.com/account/api-keys

image

(2) Choose the OpenAI model you want to use. There are several models available, including ChatGPT and GPT-3.

image

(3) Copy the Script and Modify According to your needs

(4) Display the generated text in your Unity project. This can be done using a UI text element.

Features

  • Create NPC for your game
  • Create a AI Powered ChatBot
  • Create Powerful Tools with your choice of Customisation

                                                ERRORS NOTICE

You may get some error in APILoader so use GPT3.cs Script. You can customize the script according to your needs and contribute to this Github profile.

OpenAI Platform Error Codes Documentation

                            FOR ANY-OTHER ISSUEs, PLEASE WRITE IT ON THE ISSUEs SECTION

Unity Interface ⤵️

image

image