Home

Awesome

Unity OpenAI-API Integration

Twitter Follow Twitter Follow Medium.com Twitter Follow Support

<div align="center" style="text-align: center">

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

</div>

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


                                                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


Show your support by ⭐️ our Repo!