{"id":17337203,"url":"https://github.com/zxypro1/chineseaidungeonchatgpt_tkinter","last_synced_at":"2026-07-17T04:36:18.964Z","repository":{"id":155087030,"uuid":"574954680","full_name":"zxypro1/ChineseAiDungeonChatGPT_tkinter","owner":"zxypro1","description":"中文AI地牢项目的简易tkinterGUI。包含token验证，登陆，自定义初始故事功能。","archived":false,"fork":false,"pushed_at":"2022-12-06T15:08:00.000Z","size":3424,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T08:11:38.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/zxypro1.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":"2022-12-06T12:47:56.000Z","updated_at":"2024-10-12T09:45:04.000Z","dependencies_parsed_at":"2023-07-30T20:15:42.203Z","dependency_job_id":null,"html_url":"https://github.com/zxypro1/ChineseAiDungeonChatGPT_tkinter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zxypro1/ChineseAiDungeonChatGPT_tkinter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxypro1%2FChineseAiDungeonChatGPT_tkinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxypro1%2FChineseAiDungeonChatGPT_tkinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxypro1%2FChineseAiDungeonChatGPT_tkinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxypro1%2FChineseAiDungeonChatGPT_tkinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxypro1","download_url":"https://codeload.github.com/zxypro1/ChineseAiDungeonChatGPT_tkinter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxypro1%2FChineseAiDungeonChatGPT_tkinter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279164927,"owners_count":26117818,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-15T15:34:23.909Z","updated_at":"2025-10-16T07:18:23.327Z","avatar_url":"https://github.com/zxypro1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 中文版本的ai地牢的简易tkinter客户端\n\n\n\u003cimg width=\"470\" alt=\"Img\" src=\"https://user-images.githubusercontent.com/43384183/205905781-f47d82b3-35c2-41f6-8db3-edb7be3c8fa7.png\"\u003e\n\n## 介绍\n\n中文版的ai地牢，直接使用的openai的ChatGPT api作为讲故事的模型。原项目地址为[ChineseAiDungeon](https://github.com/bupticybee/ChineseAiDungeonChatGPT)。  \n此项目用tkinter做了一个简单的交互客户端，包含token检查，登陆，自定义初始故事功能。更多功能正在开发中。token检查和登陆功能使用了[PyChatGPT](https://github.com/rawandahmad698/PyChatGPT)项目的部份代码。\n\n\n## 安装和使用\n\n拉取项目，然后在项目目录下运行\n```shell\npip3 install -r requirements.txt\n```\n安装所有依赖\n\n然后直接\n```shell\npython3 example_story.py\n```\n\n就可以在命令行运行起来\n\n你也可以通过\n\n```shell\npython3 app.py\n```\n\n调出一个tkinter的客户端运行。\n\n![](outputs/example_chatgpt_app.png)\n\n\n## 常见问题\n\n1. err TypeError: 'generator' object is not subscriptable\n\n见 [#1](https://github.com/bupticybee/ChineseAiDungeonChatGPT/issues/1) ，尝试`pip3 install revChatGPT --upgrade`升级依赖\n\n2. response = response.text.splitlines()[-4]  IndexError: list index out of rang\n\n一般是接口太多人调用挂了，等openai修复就好\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxypro1%2Fchineseaidungeonchatgpt_tkinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxypro1%2Fchineseaidungeonchatgpt_tkinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxypro1%2Fchineseaidungeonchatgpt_tkinter/lists"}