{"id":13909830,"url":"https://github.com/fuzhengwei/chatbot-api","last_synced_at":"2025-04-04T19:09:36.374Z","repository":{"id":65734450,"uuid":"590706604","full_name":"fuzhengwei/chatbot-api","owner":"fuzhengwei","description":"《ChatGPT AI 问答助手》 开源免费项目，涵盖爬虫接口、ChatGPT API对接、DDD架构设计、镜像打包、Docker容器部署，小巧精悍，流程全面。对于Java编程伙伴来说，非常具有学习价值。","archived":false,"fork":false,"pushed_at":"2023-10-15T23:39:04.000Z","size":2319,"stargazers_count":546,"open_issues_count":3,"forks_count":195,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-28T18:13:05.514Z","etag":null,"topics":["chatgpt","ddd","docker","springboot"],"latest_commit_sha":null,"homepage":"https://bugstack.cn/md/project/chatbot-api/chatbot-api.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fuzhengwei.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}},"created_at":"2023-01-19T02:10:40.000Z","updated_at":"2025-03-27T03:20:51.000Z","dependencies_parsed_at":"2023-10-16T14:14:54.366Z","dependency_job_id":"f4993189-7433-48db-a17e-aee7bbc365ac","html_url":"https://github.com/fuzhengwei/chatbot-api","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/fuzhengwei%2Fchatbot-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzhengwei%2Fchatbot-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzhengwei%2Fchatbot-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuzhengwei%2Fchatbot-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuzhengwei","download_url":"https://codeload.github.com/fuzhengwei/chatbot-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"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":["chatgpt","ddd","docker","springboot"],"created_at":"2024-08-07T00:00:53.206Z","updated_at":"2025-04-04T19:09:36.355Z","avatar_url":"https://github.com/fuzhengwei.png","language":"Java","funding_links":[],"categories":["Chat bots"],"sub_categories":["Other"],"readme":"# 《ChatGPT AI 问答助手》开源免费项目\n\n\u003e大家好，我是技术UP主，小傅哥。13年毕业，大厂互联网T8架构师，全网40万粉编程知识博主。\n\n- :bus: 作品：[`CodeGuide | 程序员编码指南`](https://github.com/fuzhengwei/CodeGuide) | [`RoadMap 编程路书`](https://github.com/fuzhengwei/RoadMap) | [`Java 数据结构和算法`](https://github.com/fuzhengwei/java-algorithms) | [`IM 仿微信`](https://github.com/fuzhengwei/NaiveChat) | [`Java 面经手册`](https://github.com/fuzhengwei/interview) | [`IntelliJ IDEA 插件开发`](https://github.com/fuzhengwei/guide-idea-plugin) | [`Lottery 抽奖系统 - 基于领域驱动设计的四层架构实践`](https://github.com/fuzhengwei/Lottery) | [`API网关`](https://github.com/fuzhengwei/api-gateway) | [`手写Spring`](https://github.com/fuzhengwei/small-spring) | [`手写MyBatis`](https://github.com/fuzhengwei/small-mybatis) | [`设计模式`](https://github.com/fuzhengwei/itstack-demo-design) | [`Netty 实战案例`](https://github.com/fuzhengwei/itstack-demo-netty) | [`字节码编程`](https://github.com/fuzhengwei/itstack-demo-bytecode) | [更多搜索...](https://github.com/fuzhengwei?tab=repositories)\n- :seedling: 干货：[公众号『 bugstack虫洞栈 』](https://bugstack.cn/images/personal/qrcode.png)\n- :pencil: 博客：[bugstack.cn](https://bugstack.cn/) - 足够硬核，内容老狠了！\n- :tv: 视频：[B站 小傅哥の码场](https://space.bilibili.com/15637440)\n- :love_letter: 微信：[fustack](https://bugstack.cn/images/personal/fustack.png) - 备注来意\n- :feet: 我的编程知识星球：[实战生产级项目、手写框架级源码，可以向我 1对1 提问，解答技术/职场/规划问题](https://bugstack.cn/md/zsxq/introduce.html)\n\n## ⛳ 目录\n\n- 代理方案：因访问问题，需要把 api.openai.com 替换成代理域名 open.aiproxy.xyz @By [学院君 geekr-dev](https://github.com/geekr-dev)\n [https://github.com/geekr-dev/openai-proxy](https://github.com/geekr-dev/openai-proxy) 或者对接 [ChatGLM SDK](https://bugstack.cn/md/road-map/http.html) - 并且做了对接星球回帖。\n- [Github](https://github.com/fuzhengwei/chatbot-api) | [Gitcode](https://gitcode.net/fuzhengwei/chatbot-api)\n- [0. 学习加群](#) - 添加小傅哥微信【fustack】备注【ChatGPT AI 问答助手 学习加群】\n- [1. 项目介绍](#1-项目介绍)\n- [2. 课程目录](#2-课程目录) - 视频；课程更新到小傅哥的B站：[]()\n- [3. 加入星球](#3-加入星球) - 体验；[ChatGPT 使用](https://wx.zsxq.com/dweb2/index/group/28885518425541)\n- [4. 版权说明](#4-版权说明)\n\n### 1. 项目介绍\n\n**《ChatGPT AI 问答助手》** 开源免费项目，涵盖爬虫接口、ChatGPT API对接、DDD架构设计、镜像打包、Docker容器部署，小巧精悍，流程全面。对于Java编程伙伴来说，非常具有学习价值。\n\n❤️ 这个项目本身是小傅哥为自己的知识星球开发的一个智能问答回复系统，用于帮助读者解决一些常见的技术问题，提高回答效率也减少小傅哥的对此类问题的时间投入。通过演示我们可以看到，有了这样一个智能AI问答助手，可以大大的减少很多对于这些通用类技术问题的回复，同时也可以把这样的问答内容沉淀到知识星球，方便其他人学习使用。\n\n《ChatGPT AI 问答助手》这样一个项目，要用到哪些技术手段呢？它包含；SpringBoot、DDD架构、Github仓库使用、接口爬虫、AI接口对接、定时任务、镜像打包、Docker容器部署等内容。\n\n可以说麻雀虽小，五脏俱全。代码量不大但流程很完整，对于正在学习Java的伙伴来说，非常具有学习价值。\n\n为了让粉丝伙伴更好的学习这个项目，小傅哥把它免费开源出来，并且是录制好对应的视频课程，一行行带着大家手写代码学习这个项目。\n\n包括工程的创建、Github仓库使用、push代码等，因为只有这样才能让更多新人有一条进入学习编程的大门。\n\n**注意**：\n1. 技术栈：Java、SpringBoot、爬虫、ChatGPT、job、Docker\n2. OpenAi Keys 申请：[https://beta.openai.com/account/api-keys](https://beta.openai.com/account/api-keys) - 用于处理扫码知识星球问题进行调用获取答案。\n3. 在学习的过程中，可以看到每一个章节都有一个对应的代码分支，可以把代码拉取到本地切换到对应的分支进行对照学习。\n\n### 2. 课程目录\n\n**注意📢** `视频`；课程更新到小傅哥的B站：[https://www.bilibili.com/video/BV1YT411o7Hb](https://www.bilibili.com/video/BV1YT411o7Hb)\n\n| 目录 - `点击章节进入到学习视频`                          | Github                                                       | Gitcode                                                      |\n| -------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |\n| [开篇介绍，学习引导](https://www.bilibili.com/video/BV1YT411o7Hb)                                      |                                                              |                                                              |\n| [第1节：SpringBoot DDD 工程创建和 Github/Gitcode 仓库使用](https://www.bilibili.com/video/BV1RR4y1b7UQ) | [【23_xfg_init_project】](https://github.com/fuzhengwei/chatbot-api/tree/23_xfg_init_project) | [【23_xfg_init_project】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/23_xfg_init_project) |\n| [第2节：创建知识星球，爬取接口信息](https://www.bilibili.com/video/BV1L341197x1)                        | [【23_xfg_zsxq_api】](https://github.com/fuzhengwei/chatbot-api/tree/23_xfg_zsxq_api) | [【23_xfg_zsxq_api】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/23_xfg_zsxq_api) |\n| [第3节：知识星球接口领域服务开发](https://www.bilibili.com/video/BV1Wv4y1671x)                          | [【23_xfg_zsxq_domain】](https://github.com/fuzhengwei/chatbot-api/tree/23_xfg_zsxq_domain) | [【23_xfg_zsxq_domain】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/23_xfg_zsxq_domain) |\n| [第4节：对接ChatGPT，调用接口](https://www.bilibili.com/video/BV1KT411Z7z3)                             | [【23_xfg_chatgpt】](https://github.com/fuzhengwei/chatbot-api/tree/23_xfg_chatgpt) | [【23_xfg_chatgpt】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/23_xfg_chatgpt) |\n| [第5节：整合知识星球与ChatGPT，完成自动化回答](https://www.bilibili.com/video/BV1Ny4y1R7EK)             | [【23_xfg_job】](https://github.com/fuzhengwei/chatbot-api/tree/23_xfg_job) | [【23_xfg_job】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/23_xfg_job) |\n| [第6节：打包镜像文件，部署服务到 Docker 容器](https://www.bilibili.com/video/BV1gT411C7nn)              | [【23_xfg_docker】](https://github.com/fuzhengwei/chatbot-api/tree/23_xfg_docker) | [【23_xfg_docker】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/23_xfg_docker) |\n| [【扩展】第7节：多组任务服务配置](https://www.bilibili.com/video/BV1XR4y1h7JP)          | [【230127-xfg-task】](https://github.com/fuzhengwei/chatbot-api/tree/230127-xfg-task) | [【230127-xfg-task】](https://gitcode.net/fuzhengwei/chatbot-api/-/tree/230127-xfg-task) |\n\n### 3. 加入星球【ChatGPT AI 问答助手】\n\n- PC端访问：[https://wx.zsxq.com/dweb2/index/group/28885518425541](https://wx.zsxq.com/dweb2/index/group/28885518425541)\n- APP端提问：你可以通过微信扫码，加入知识星球【ChatGPT AI 问答助手】，在手机端对ChatGPT进行提问。\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://bugstack.cn/images/system/zsxq/zsxq-ai.jpeg?raw=true\" width=\"350px\"\u003e\n\u003c/div\u003e\n\n### 4. 版权说明\n\n此项目为 Apache License 2.0 开源协议项目，以学习为目的进行创作，禁止培训机构、私人号主、公司组织等以各类收费形式进行销售。如果你有合作诉求，请与小傅哥联系获得书面授权，微信：fustack \n\n---\n\n### 5. 模型训练\n\n#### 5.1 环境安装\n\n- 下载 Python：[https://www.python.org/downloads/macos/](https://www.python.org/downloads/macos/) 3.6版本以上\n- 配置 Python：\n    1. 搜索地址 `which python3`\n    2. 环境配置 `alias python=\"/Library/Frameworks/Python.framework/Versions/3.10/bin/python3\"`\n    3. 生效配置 `source .bash_profile`\n    \n- 安装 pip：以下需要用到 pip 指令，如果没有需要安装 'curl https://bootstrap.pypa.io/get-pip.py | python3'\n\n#### 5.3 tensorflow\n\n地址：[https://www.tensorflow.org/install?hl=zh-cn](https://www.tensorflow.org/install?hl=zh-cn)\n\n脚本：\n\n```python\n# Requires the latest pip\npip install --upgrade pip\n\n# Current stable release for CPU and GPU\npip install tensorflow\n\n# Or try the preview build (unstable)\npip install tf-nightly\n```\n\nmac m1：`python3 -m pip install tensorflow-macos`\n\n测试：\n\n```python\npython3 -c \"import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))\"\n\n# 结果；tf.Tensor(228.22836, shape=(), dtype=float32)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuzhengwei%2Fchatbot-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuzhengwei%2Fchatbot-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuzhengwei%2Fchatbot-api/lists"}