{"id":13958977,"url":"https://github.com/liyucheng09/ChatGPT_Agent","last_synced_at":"2025-07-21T00:32:47.193Z","repository":{"id":204090834,"uuid":"709852038","full_name":"liyucheng09/ChatGPT_Agent","owner":"liyucheng09","description":"A Game Demo Powered by ChatGPT Agents","archived":false,"fork":false,"pushed_at":"2023-11-02T13:42:43.000Z","size":590,"stargazers_count":266,"open_issues_count":1,"forks_count":44,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-20T09:02:41.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liyucheng09.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-25T14:21:38.000Z","updated_at":"2025-05-17T16:33:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"914d1af7-0cd3-4869-ad50-36cc0af1b351","html_url":"https://github.com/liyucheng09/ChatGPT_Agent","commit_stats":null,"previous_names":["liyucheng09/stardew_valley_by_agents"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liyucheng09/ChatGPT_Agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyucheng09%2FChatGPT_Agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyucheng09%2FChatGPT_Agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyucheng09%2FChatGPT_Agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyucheng09%2FChatGPT_Agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liyucheng09","download_url":"https://codeload.github.com/liyucheng09/ChatGPT_Agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyucheng09%2FChatGPT_Agent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266221324,"owners_count":23894966,"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":[],"created_at":"2024-08-08T13:02:21.684Z","updated_at":"2025-07-21T00:32:42.185Z","avatar_url":"https://github.com/liyucheng09.png","language":"TypeScript","funding_links":[],"categories":["游戏"],"sub_categories":["网络服务_其他"],"readme":"# A Game Demo Powered by ChatGPT Agents\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/liyucheng09/ChatGPT_Agent/blob/main/pics/logo.png\" alt=\"Logo\" width=\"auto\" height=\"160\" /\u003e\n\u003c/p\u003e\n\n# 上手指南\n\n1. 在OpenAI注册账号并创建API密钥。\n2. 在src目录中新建.apikeys.ts文件。\n3. 在此文件中添加 `export const CHATGPT_API_KEY = \"复制并粘贴您的API密钥\";`。\n4. 运行 `yarn install` 安装依赖。\n5. 运行 `yarn start` 启动应用。\n6. 浏览器中打开 [http://localhost:3000](http://localhost:3000) 查看应用。\n7. 靠近NPC按q开始对话。\n8. 编辑后页面会自动重载。\n9. 控制台会显示任何lint错误。\n\n**更改故事背景和角色人格：**\n\n- 更改地图信息：`src/backend/data/locationData.ts`\n- 更改NPC人格：`src/backend/data/npcs/NpcData.ts`\n- 更改NPC的Action，prompt等：`src/backend/services/ConversationService.ts`\n\n\n# Details\n\nYou will need to an account with openai and create an api key.\n\nThen in the src directory create a new file called .apikeys.ts (make sure not to commit this file or share your\napi key with anyone else)\n\nIn this file add\n`export const CHATGPT_API_KEY = \"copy and paste your api key here\";`\n\nThen run `yarn install` to install dependencies, and `yarn start` to start the application. A browser window should open\nwith the app running. If it does not than try opening [http://localhost:3000](http://localhost:3000)\n\n## Run on local machine\n\nIn the project directory, you can run:\n\n### `yarn start`\n\nRuns the app in the development mode.\\\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\\\nYou will also see any lint errors in the console.\n\n**Change the story background and character personalities:**\n\n- Modify map information: `src/backend/data/locationData.ts`\n- Modify NPC personalities: `src/backend/data/npcs/NpcData.ts`\n- Modify NPC actions, prompts, etc.: `src/backend/services/ConversationService.ts`\n\n### `yarn test`\n\nLaunches the test runner in the interactive watch mode.\\\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\\\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\\\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `yarn eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Thanks\n\nThanks for [blurrypiano](https://github.com/blurrypiano) for the general framework.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliyucheng09%2FChatGPT_Agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliyucheng09%2FChatGPT_Agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliyucheng09%2FChatGPT_Agent/lists"}