1nnovat1on / Unity_OpenAI_API_GPT_Manager

Use this to put GPT-3.5 or GPT-4 into your games. Set the api key and model name in the inspector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity_OpenAI_API_GPT_Manager

A Unity script for seamless integration with OpenAI's API, specifically designed for GPT-3, GPT-4 and future models.

This Unity_OpenAI_API_GPT_Manager provides an easy-to-use script for developers to communicate with OpenAI's API within their Unity projects. It enables you to generate text completions, create interactive experiences, and take advantage of the power of GPT-3 and future models within your Unity games or applications.

Features:

  • Simple setup and integration with Unity projects.
  • Built-in support for GPT-3 and future OpenAI models.
  • Customizable model selection and API key management.
  • Asynchronous request handling for a smooth user experience.
  • Example implementation for creating text-based interactive experiences.

Getting Started:

  1. Clone or download the repository.
  2. Add the OpenAIAPIManager.cs script to your Unity project.
  3. Attach the OpenAIAPIManager script to a GameObject in your scene.
  4. Set your API key and desired model in the OpenAIAPIManager component in the Unity Inspector.
  5. Use the OpenAIAPIManager methods in your scripts to interact with OpenAI's API and generate text completions or create interactive experiences.

For more detailed usage instructions and examples, please refer to the example scenes included in the repository.

By using the Unity_OpenAI_API_GPT_Manager, you can harness the potential of OpenAI's powerful language models to create unique and engaging experiences in your Unity projects. Whether you're building a chatbot, a narrative-driven game, or an interactive AI companion, this script is designed to help you bring your ideas to life with ease.

About

Use this to put GPT-3.5 or GPT-4 into your games. Set the api key and model name in the inspector


Languages

Language:C# 100.0%