ChatDev is a Chrome plugin that integrates multiple large model interfaces, with its core set against the backdrop of an AI town. It empowers each NPC with interactive capabilities through these large model interfaces.
You can use it to explore different experiences of various large models in gaming or create a set of your own life memories in the AI town by selecting your favorite large model.
- When you first enter the town, the large model will ask for your name based on your language environment. Simply input your name in the text box, and the large model will use it to address you in future conversations.
- Use the arrow keys on your keyboard (up, down, left, right) to control the player's movements. When the player approaches an NPC, the NPC will initiate a new conversation based on the current situation and historical dialogue information (the player will automatically follow).
- When the player moves away from an NPC by a certain distance, the NPC will summarize the current conversation and store it in the browser's
LocalStorage
for use in future chats. - As you approach different areas (e.g., gym, university) or different locations within those areas (e.g., tables, computers, bookshelves), the large model will ask if you want to record your current location. You can respond to record the location, and the record will be summarily stored in
LocalStorage
once you leave that location.
- You need to install the plugin in the Chrome or Edge browser and log in to your account on the corresponding large model's website.
- ChatGPT
- iFlyTek Starfire Cognitive Large Model
- ...
Search for ChatDev in the Chrome Web Store and click to install.
- Download
chatdev1.0.1.zip
from Releases. - Extract the files.
- In Chrome/Edge, open the extensions page (
chrome://extensions
oredge://extensions
). - Enable developer mode.
- Drag the extracted folder onto the page to import (do not delete the folder after importing).
- Clone the source code.
- Use
yarn install
to install dependencies. - Use
yarn build
to build the plugin. - Follow the steps in "Manual Installation" to load the
dist
folder into your browser.
- v1.0.1
- Added support for iFlyTek Starfire Cognitive Large Model.
- v1.0.0
- Initial release of the AI Town plugin based on ChatGPT.
We sincerely thank the following projects for providing us with inspiration and references:
Whether you want to explore the wonders of different large models or create your own virtual town life, ChatDev will be your invaluable assistant. Install it now and start exploring!