ChineseAiDungeonChatGPT logo

ChineseAiDungeonChatGPT

Free

1.4k

FreeFree tier
Inputs: textOutputs: text
Type
Open Source

About ChineseAiDungeonChatGPT

ChineseAiDungeonChatGPT is an open-source project that recreates the AI Dungeon experience in Chinese by directly using OpenAI's ChatGPT API as the storytelling model. The project consists of roughly 40 lines of code and leverages the ChatGPT API to generate interactive text adventures. It offers both a command-line interface via example_story.py and a GUI application via app.py. The tool has been updated to support official OpenAI API keys for improved speed and reliability. It includes features such as auto-save/load and configurable login methods. The stories produced are noted to be of significantly higher quality than previous Chinese AI Dungeon implementations, rivaling the original AI Dungeon.

Key Features

Uses OpenAI ChatGPT API for story generation
Supports both CLI and GUI interfaces
Auto-save and load story progress
Configurable login – supports both official OpenAI API key and account-based access
Lightweight – approximately 40 lines of core code
Real-time interactive storytelling in Chinese

Pros & Cons

Pros
  • Storytelling quality significantly better than previous Chinese AI Dungeon models
  • Free and open-source software
  • Easy to install and run with minimal dependencies
  • Leverages the powerful ChatGPT model without requiring fine-tuning
  • Provides both command-line and graphical user interfaces
Cons
  • Requires an OpenAI API key or account, which may involve costs or usage limits
  • Dependence on OpenAI API availability and potential policy changes
  • Official API usage requires payment; free access via account may risk token expiry or blocking
  • Documentation and interface are primarily in Chinese, limiting accessibility for non-Chinese speakers
  • Occasional errors like 'generator not subscriptable' require updating dependencies

Best For

Interactive text adventure games in ChineseChinese-language role-playing and storytellingPrototyping narrative-based games with AIEducational tool for creative writing in Chinese

FAQ

How do I run ChineseAiDungeonChatGPT?
Clone the repository, run `pip3 install -r requirements.txt` to install dependencies, then run `python3 example_story.py` for the command-line interface or `python3 app.py` for the GUI (requires Python 3.9+).
What login methods are supported?
As of March 2023, the project supports logging in using an official OpenAI API key for faster and more reliable access. It also previously supported OpenAI account-based login via the revChatGPT package, but session tokens have been deprecated.
Is ChineseAiDungeonChatGPT free to use?
The software itself is free and open-source. However, using the official OpenAI API requires payment and an API key. The older account-based access method may be free but carries risks of account suspension or token expiry.
What should I do if I get the error 'TypeError: generator object not subscriptable'?
Upgrade the revChatGPT package by running `pip3 install --upgrade revChatGPT`. This error is often caused by an outdated version of the dependency.