ChatGPT-Wrapper-For-Unity  by GraesonB

Unity tool for prototyping ChatGPT integration in games

created 2 years ago
263 stars

Top 97.7% on sourcepulse

GitHubView on GitHub
Project Summary

This Unity wrapper provides a straightforward method for integrating ChatGPT's API into game development projects, targeting Unity developers seeking to prototype AI-driven features. It simplifies API interaction, enabling developers to send prompts and receive responses directly within the Unity environment.

How It Works

The wrapper utilizes Unity's built-in networking capabilities to make HTTP requests to the OpenAI API. Developers attach a ChatGPTConversation script to a game object, configure their API key and parameters, and then trigger requests via UnityEvents. Responses are handled through a UnityStringEvent, allowing for seamless integration with game logic and UI.

Quick Start & Requirements

  • Install via Unity Package Manager: Add package from Git URL - https://github.com/GraesonB/ChatGPT-Wrapper-For-Unity.git or add "com.graesonb.chat-gpt-wrapper-for-unity": "https://github.com/GraesonB/ChatGPT-Wrapper-For-Unity.git" to Packages/manifest.json.
  • Requires Unity and an OpenAI API key.
  • UI Toolkit is optional; UI files can be deleted if not supported.

Highlighted Details

  • Simplifies ChatGPT API integration within Unity.
  • Uses UnityEvents for triggering requests and handling responses.
  • Includes UI files for a demo, though manual setup is required.

Maintenance & Community

  • Project is maintained by GraesonB.
  • No explicit community channels or roadmap are mentioned in the README.

Licensing & Compatibility

  • The README does not specify a license.

Limitations & Caveats

This wrapper is explicitly marked as not suitable for production use due to the risk of API key leakage if embedded directly in a shipped game. The author plans to address this with a proxy server template.

Health Check
Last commit

2 years ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.