Unity package for integrating OpenAI APIs
Top 44.1% on sourcepulse
This package provides an unofficial Unity integration for the OpenAI API, enabling game developers to incorporate AI functionalities like text generation and image creation directly within the Unity engine. It targets Unity developers seeking to leverage advanced AI models for features such as intelligent NPCs, dynamic content generation, or creative tools within their games.
How It Works
The package exposes an OpenAIApi
class that handles asynchronous requests to OpenAI's various endpoints. It supports both standard and streamed responses, allowing for real-time interaction with models like GPT-3.5-turbo and DALL-E. The design emphasizes ease of integration via Unity's Package Manager and provides clear examples for common use cases.
Quick Start & Requirements
https://github.com/srcnalt/OpenAI-Unity.git
.openai/auth.json
file for security.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
WebGL builds may encounter issues with image downloads due to CORS policies, and streamed responses might be blank in Unity 2020 WebGL builds. Support for older Unity versions on non-Windows platforms is marked as "Not Tested."
8 months ago
1 day