{"id":13457333,"url":"https://github.com/cosin2077/chaty","last_synced_at":"2025-03-24T12:31:23.553Z","repository":{"id":106125620,"uuid":"609092468","full_name":"cosin2077/chaty","owner":"cosin2077","description":"one line code, satisfied all your ChatGPT imagination✨✨✨","archived":false,"fork":false,"pushed_at":"2024-02-22T07:53:08.000Z","size":1881,"stargazers_count":450,"open_issues_count":15,"forks_count":42,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-29T01:32:52.333Z","etag":null,"topics":["chatbot","chatgpt","chatgpt3","nodejs","typescript","wechat"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosin2077.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T11:07:29.000Z","updated_at":"2024-10-12T07:23:24.000Z","dependencies_parsed_at":"2024-07-31T08:15:40.134Z","dependency_job_id":"81ec63fb-9fb0-4a8a-b629-5eeb97b53490","html_url":"https://github.com/cosin2077/chaty","commit_stats":{"total_commits":94,"total_committers":1,"mean_commits":94.0,"dds":0.0,"last_synced_commit":"fafa32c8fcdef725e99f9520aae6937458dc0f7e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosin2077%2Fchaty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosin2077%2Fchaty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosin2077%2Fchaty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosin2077%2Fchaty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosin2077","download_url":"https://codeload.github.com/cosin2077/chaty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245269846,"owners_count":20587861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatgpt","chatgpt3","nodejs","typescript","wechat"],"created_at":"2024-07-31T08:01:40.183Z","updated_at":"2025-03-24T12:31:23.047Z","avatar_url":"https://github.com/cosin2077.png","language":"TypeScript","funding_links":[],"categories":["A01_文本生成_文本对话","TypeScript","Chatbots"],"sub_categories":["大语言对话模型及数据"],"readme":"## ✨✨✨Chaty – ChatGPT ALl In One!\n\nRead this in other languages: English | [简体中文](./README.zh-CN.md)\n\nWith Chaty, your needs about ChatGPT will come to life! Chaty allows you to:\n\n- Use it as a command-line assistant;\n- Deploy a private ChatGPT web service;\n- Deploy NodeJS API for ChatGPT;\n- Deploy WeChat ChatGPT bot;\n- Deploy Telegram ChatGPT bot;  \n- More services are under coding!\n\nLet Chaty take you beyond expectations and into the exciting world of ChatGPT.\n## Update\n2023.03.13 Support for WeChat robot to reply to group chats! Just add the WeChat robot into the group and @\\\u003cyour-bot-name\\\u003e to start a conversation!  \n2023.03.15 ❗️Based on some feedback, WeChat may impose restrictions on robot logins, which may result in account suspension. Please try running \u003ccode\u003echaty run wechat\u003c/code\u003e with a secondary account.\n2023.03.17 web dialog saving supported!\n\n## Usage\nChaty is very easy to use!  \ninstall ichaty first  \n```javascript\nnpm i -g ichaty\n```\nthen login with your openAI key  \n```javascript\nchaty login \u003cyour-openAI-key\u003e\n```\n```javascript\nchaty // show you all commands and options  \nchaty run command // run as a command chatGPT bot\nchaty run web // deploy a web chatGPT service\nchaty run node // deploy a node chatGPT api service\nchaty run wechat // deploy a wechat chatGPT bot\nchaty run telegram // deploy a telegram chatGPT bot\n```\n\n## ⚙️Installation\n\nTips: Node v16 or above version is required.  \nChaty is a application based on Node.js, and can be installed with the following command:  \nIf you have not installed NodeJS, [click here](https://nodejs.org/)  \n\n```\nnpm i -g ichaty\n```\n## 🔑Login\n\nLogin with your openAI key.You can find your API key at https://platform.openai.com/account/api-keys.  \nThen you can start your journey\n```\nchaty login \u003cyour-openAI-key\u003e\n```\n\n## 🚀Services\n\nChaty provides multiple service options, and you can choose the most suitable one according to your needs.\n```\n-[x] command line Service📁   \n-[x] private Web Service🚀  \n-[x] weChat Robot Service💬   \n-[x] nodeJS API Service💻 \n-[] telegram Bot Service🤖  \n```\n\n### 📁command line Service   \n```\nchaty run command\n```\n![](./assets/images/command.jpg)\n### 🌍Private Web Service\n\nChaty can deploy a private web service, and you can access the Chaty service you created anytime by visiting http://localhost:9522.  \nyou can specify port with \u003ccode\u003echaty run web --port \\\u003cyour-port\\\u003e\u003c/code\u003e  \n```\nchaty run web --port 9555\n```\n![](./assets/images/web.jpg)\n![](./assets/images/web2.jpg)\n\n### 💬WeChat Robot Service\n\nChaty can also deploy a WeChat robot service, allowing you to chat with Chaty through a WeChat account.  \n```\nchaty run wechat\n```\nScan qrcode on terminal then login your wechat!  \n![](./assets/images/wechat.jpg)\n\nJust send message with hello/你好 to start your journey~\n![](./assets/images/wechat2.png)\n\n### 🤖Telegram Bot Service(under construction...)\n\nChaty can also deploy Telegram Bot service, enabling your users to chat with Chaty in Telegram. Simply send a message to '@your-bot' to initiate the chatbot service.\n\n## Troubleshooting  \n1. If your network cannot access [https://api.openai.com](https://api.openai.com), you can try run  \n```\nchaty proxy default\n```\nas a temporary proxy solution.  \nFor a long-term solution, it is recommended to run on a server that supports accessing \u003ccode\u003eapi.openai.com\u003c/code\u003e or use a stable proxy.\n\n2. when you got error like below(wechat security authorization). Auth your wechat account(me-\u003ePay-\u003eupper right corner···-\u003eReal-Name Authentication).\n```\nuncaughtException AssertionError [ERR_ASSERTION]: 1 == 0\n```\n## under coding\n\n- [] support SSE\n- [] support command line/ web service save dialog\n- [] faster service\n- [] config wechat robot params\n- [] better web service ui\n## Additional Features\n\nMore services are under construction!(discord, telegram, slack...)\n\nThank you for choosing Chaty! If you have any questions or suggestions, please feel free to contact us!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosin2077%2Fchaty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosin2077%2Fchaty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosin2077%2Fchaty/lists"}