# chatdev **Repository Path**: for2cyfeng/chatdev ## Basic Information - **Project Name**: chatdev - **Description**: ChatDev 是一个整合多种大模型接口的Chrome插件,主体是以AI小镇为背景,然后通过大模型的接口给每个NPC赋予互动能力。 你可以用来研究不同大模型在游戏中的不同体验,也可以通过选择自己喜欢的大模型在AI小镇中建立一套自己的生活记忆。 - **Primary Language**: TypeScript - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: https://chatdev.toscl.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 8 - **Created**: 2023-11-12 - **Last Updated**: 2023-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

ChatDev: Visualize Your AI Agent

[![author][author-image]][author-url] [![license][license-image]][license-url] [![release][release-image]][release-url] [![last commit][last-commit-image]][last-commit-url] English   |   [Indonesia](README_IN.md)   |   [简体中文](README_ZH-CN.md)   |   [繁體中文](README_ZH-TW.md)   |   [日本語](README_JA.md) ## ### ⚡️ Install Get ChatDev for Chromium Get ChatDev for Microsoft Edge ## [Screenshot](#-screenshot)   |   [Features](#-features)   |   [Bots](#-bots)   |   [Installation](#-installation)   |   [Changelog](#-changelog) [author-image]: https://img.shields.io/badge/author-10cl-blue.svg [author-url]: https://github.com/10cl [license-image]: https://img.shields.io/github/license/10cl/chatdev?color=blue [license-url]: https://github.com/10cl/chatdev/blob/main/LICENSE [release-image]: https://img.shields.io/github/v/release/10cl/chatdev?color=blue [release-url]: https://github.com/10cl/chatdev/releases/latest [last-commit-image]: https://img.shields.io/github/last-commit/10cl/chatdev?label=last%20commit [last-commit-url]: https://github.com/10cl/chatdev/commits
**ChatDev** is an integrated multiple large language model **Chrome extension**, that supports chat mode and game mode. you can **personalize** these AI agents, and use **Visualized** prompt flow to let Multi-Persona Self-Collaboration. ## 📷 Screenshot ![game-prompt-flow.png](./screenshots/game-prompt-flow.png) ![chat-prompt-flow.gif](./screenshots/chat-prompt-flow.gif) ## ✨ Features * Use different chatbots in one application, which currently supports ChatGPT, the new Bing Chat, Google Bard, Claude, and more than 10 open source models. * Invoking large model interfaces in the browser in the form of Webapis requires no code capability * Interact with NPCs in the form of games and discuss real needs * customize prompts(NPCs & location), and custom prompt flows(brain of their actions) * Once Prompt Flow is enabled, express your needs in one sentence, and NPCs will be automatically selected to form teams, perform quests, and present them in an interactive gameplay style. ## 🤖 Bots Supported ChatGPT & iFlytek Spark & Bing & Bard & Claude & ChatGLM & Alpaca & Vicuna & Koala & Dolly & LLaMA & StableLM & OpenAssistant & ChatRWKV... ## 🔨 Installation ### 1. Install from Web Store 1. Search for [ChatDev](https://chrome.google.com/webstore/detail/chatdev/dopllopmmfnghbahgbdejnkebfcmomej) in the [Chrome Web Store](https://chrome.google.com/webstore/category/extensions) and click "Install." 2. Search for [ChatDev](https://microsoftedge.microsoft.com/addons/detail/chatdev-visualize-your-a/ceoneifbmcdiihmgfjeodiholmbpmibm) in the [Microsoft-Edge-Extensions](https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home) and click "Get." ### 2. Manual Installation 1. Download `chatdev1.1.3.zip` from the Releases page. 2. Extract the files. 3. In Chrome/Edge, open the extensions page (`chrome://extensions` or `edge://extensions`). 4. Enable developer mode. 5. Drag and drop the extracted folder onto the page to import it (do not delete the folder after importing). ### 3. Build from Source Code * Clone the source code. * Run `yarn install` to install dependencies. * Run `yarn build` to build the plugin. * Follow the steps in "Manual Installation" to load the `dist` folder into your browser. ## 📜 Changelog * v1.1.3 * Flow_Dag_Yaml prompt type Add config prompt type, that is, do not send this node to the large model, and directly return the path content for parsing (Add Planning_Task_Team_Org configuration of NPC participating in the meeting) * Mouse over the markers (NPCs, furniture, etc.) to display prompt description and edit button * Default speed increased from 0.5 to 1, and reduced to 0.5 when chatting with NPCs * When starting a round table, automatically select the appropriate meeting address, draw the area of the meeting, and temporarily stop the player action. * The round table automatically ends when the player leaves the round table area * When you get close to an NPC, draw the area of the chat * When the NPC is less than 400 away from the player, the current activity record is not output, the distance is less than 100 and the chat is automatically requested, and the chat is automatically ended when the NPC is out of the chat area (> 200) * The icon in the upper left corner only keeps the button to control the volume, and cancelling the switch and one-click home function of the control prompt * Reduce the location change of the mark point, and support the mark address can be customized prompt, the location is defined as "Position_base64(xxx)" * Chat record storage is changed from localStorage to indexDb to prevent temporary over limit problems * Fixed an issue where the time loop would return home * Issue with modified air cannon messages * v1.1.1 * prompt flow double-click the editable node * Import or export all configurations * prompt library sharing * v1.1.0 * Support for multiple large language models * Customization of user roles * Support for custom prompts (actions, plans, etc.) * New visual editing for custom Prompt Flow * Support for switching between chat view and game view * Predefined Prompt Flows, enabling one-sentence requests to automatically select NPCs, form teams, execute tasks, and gamify presentations * Settings button for customizing APIs and selecting preferred models * Fixed API issues with iFlytek Spark model * v1.0.1 * Added support for iFlytek Spark cognitive large language model * v1.0.0 * Initial release of the AI town plugin based on ChatGPT ## 🤝 Acknowledgments We sincerely thank the following projects for providing inspiration and reference: [generative_agents](https://github.com/joonspk-research/generative_agents)、[chathub](https://github.com/chathub-dev/chathub) Whether you want to explore the wonders of different large language models or create your own virtual town life, ChatDev will be your reliable assistant. Install it now and start exploring!