{"id":24876090,"url":"https://github.com/14790897/nighttime-wisdom-star","last_synced_at":"2025-10-15T19:32:37.463Z","repository":{"id":163852313,"uuid":"638141825","full_name":"14790897/Nighttime-Wisdom-Star","owner":"14790897","description":"The purpose of this project is to create a free platform that allows users who do not have direct access to GPT-4 to experience the power of GPT-4.","archived":false,"fork":false,"pushed_at":"2024-05-07T07:02:43.000Z","size":2021,"stargazers_count":59,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"new-branch","last_synced_at":"2024-05-07T08:26:15.011Z","etag":null,"topics":["github","learn"],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/14790897.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-09T07:07:31.000Z","updated_at":"2024-05-07T08:26:15.841Z","dependencies_parsed_at":null,"dependency_job_id":"9628a39f-d4ad-477e-8893-eb363bfad038","html_url":"https://github.com/14790897/Nighttime-Wisdom-Star","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14790897%2FNighttime-Wisdom-Star","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14790897%2FNighttime-Wisdom-Star/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14790897%2FNighttime-Wisdom-Star/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/14790897%2FNighttime-Wisdom-Star/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/14790897","download_url":"https://codeload.github.com/14790897/Nighttime-Wisdom-Star/tar.gz/refs/heads/new-branch","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236636198,"owners_count":19181021,"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":["github","learn"],"created_at":"2025-02-01T08:20:10.607Z","updated_at":"2025-10-15T19:32:32.012Z","avatar_url":"https://github.com/14790897.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Nighttime-Wisdom-Star](https://github.com/14790897/Nighttime-Wisdom-Star)\n\n[ENGLISH](README_EN.md)\n\n\n## 项目概述\n\n本项目旨在创建一个平台，让无法直接使用 GPT-4 的用户能够通过plus账号持有者的共享体验到 GPT-4 的强大功能。\n\n# 目前已经取消订阅Plus，我使用perplexity的免费gpt4，好像有方法也可以转换它的API但是我目前还没有学会，所以下面的演示站只有3.5\n演示地址：https://share.liuweiqing.top/(可以看网页上面的允许使用时间来确定当前是否能立即负责响应)\n\ntg交流群：https://t.me/+tkxAZJNrwIpjYTk1\n\n界面展示：\n\n![preview](/asset/preview.jpg)\n\n## 工作原理\n\nGPT-4 的免费使用额度限制为每三小时最多40条请求。由于账号持有者晚上需要休息，有大约40*3条的额度无法使用，因此我们可以在白天收集用户的问题，然后在晚上利用plus账号持有者闲置的GPT-4额度进行处理。用户提交的问题将被暂存到Redis数据库中，键名为\"{username}:data\"。项目中的进程会监听时间，当到达凌晨0点后，启动处理程序，读取用户提交的问题，处理后将结果连同原始问题一起存入Redis数据库，键名为\"f\"{username}:results\"。这些数据将被长期保存，以便用户在后续访问主页时能看到与GPT-4的历史对话记录。\n\n本项目如何与网页版ChatGPT进行交互？其实是用了[pandora-next](https://github.com/pandora-next/deploy)\n\n## 使用方法\n\n1. 按照.env.template注释的要求更改文件\n2. 运行目录下的new.sh脚本, 代码：`source new.sh`\n3. 运行 `bash redis_password.sh redis.conf` 设置redis的密码，这个不做的话，别人就可以清空你的数据库\n4. 目录下运行 `docker-compose up -d` \n\n## FQA\n\n1. 如果想查看注册用户的所有数据？\n\n   运行以下命令：\n\n   ```bash\n   docker-compose exec redis bash\n   ```\n\n   输入`redis-cli`，进入数据库，然后请请教ChatGPT如何查看redis的数据。\n\n2. 如何再次修改运行时间，总回答次数等环境变量？\n\n   直接修改.env文件中对应的值，完成后运行以下命令更新：\n\n   ```bash\n   docker-compose down\n   ```\n\n   ```bash\n   docker-compose up -d\n   ```\n3. 隐藏的自动化功能，只要在redis中任意创建一个键'用户名:data'，将你想要提问的问题放入此键对应的列表，程序就能识别了\n\n   如果你在使用过程中遇到任何问题，或者有任何建议，欢迎提issue。\n\n### 谢谢！\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F14790897%2Fnighttime-wisdom-star","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F14790897%2Fnighttime-wisdom-star","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F14790897%2Fnighttime-wisdom-star/lists"}