ChatGPT_Agent  by liyucheng09

Game demo powered by ChatGPT agents

created 1 year ago
269 stars

Top 96.2% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a game demo powered by ChatGPT agents, allowing users to interact with Non-Player Characters (NPCs) using natural language. It targets developers and game enthusiasts interested in integrating large language models into interactive experiences, offering a framework for dynamic NPC conversations and customizable game narratives.

How It Works

The demo utilizes a client-server architecture. The frontend, built with React, handles user interaction and displays the game environment. The backend, powered by Node.js and TypeScript, interfaces with the OpenAI API to generate NPC responses based on user input and predefined character personalities and dialogue prompts. This approach enables dynamic, context-aware conversations that can adapt to player actions.

Quick Start & Requirements

  • Install dependencies: yarn install
  • Start the application: yarn start
  • Requires an OpenAI account and API key.
  • API key must be placed in .apikeys.ts within the src directory.
  • Access the demo at http://localhost:3000.

Highlighted Details

  • Customizable NPC personalities and actions via src/backend/data/npcs/NpcData.ts and src/backend/services/ConversationService.ts.
  • Modifiable map information in src/backend/data/locationData.ts.
  • Built using React and Node.js.

Maintenance & Community

  • The project acknowledges "blurrypiano" for the general framework.
  • No specific community channels or roadmap information are provided in the README.

Licensing & Compatibility

  • The README does not explicitly state a license. The project structure and dependencies suggest a typical open-source JavaScript project, but licensing terms for commercial use or closed-source linking are not specified.

Limitations & Caveats

The project is presented as a game demo, and its suitability for production environments or complex game logic is not detailed. The reliance on a single OpenAI API key stored in a local file could pose security risks if not managed carefully.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.