Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/ccsxincxin_chat.json
T

1 line
4.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"repo": "ccsxincxin/chat", "files": {"src/main/java/com/chat/ChatApplication.java": {"003f2eff5a23820e82a535b39b16f7242a84b8df": {"t": 1785745660.1393855, "n": 1448, "h": "f8a1af45999edb14", "c": "package com.chat;\n\nimport org.mybatis.spring.annotation.MapperScan;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n/**\n * <h2>DeepSeek AI 健康助手 — 启动类</h2>\n *\n * <p>基于 Spring Boot 3.5.15 + Spring AI 1.1.5 + MyBatis + MySQL + Ollama\n * 构建的智能健康对话系统。</p>\n *\n * <h3>核心功能模块</h3>\n * <ul>\n * <li><b>多轮对话</b>:支持多用户多会话管理,对话历史持久化到 MySQL</li>\n * <li><b>对话压缩</b>:消息超过 30 条自动生成摘要,减少 token 消耗</li>\n * <li><b>健康数据向量存储</b>:外部传入或 AI 自动提取健康数据,存入向量库</li>\n * <li><b>ToolCalling</b>:AI 可获取当前时间、检索/保存健康数据</li>\n * <li><b>流式输出</b>:支持 SSE 流式对话,逐字返回</li>\n * </ul>\n *\n * <h3>环境要求</h3>\n * <table>\n * <tr><th>组件</th><th>版本</th><th>说明</th></tr>\n * <tr><td>JDK</td><td>21+</td><td>Java 运行环境</td></tr>\n * <tr><td>MySQL</td><td>8.0+</td><td>业务数据 + 向量存储</td></tr>\n * <tr><td>Ollama</td><td>latest</td><td>本地 Embedding 模型服务</td></tr>\n * <tr><td>DeepSeek API</td><td>—</td><td>大语言模型,需配置 DEEPSEEK_API_KEY</td></tr>\n * </table>\n *\n * <h3>启动方式</h3>\n * <pre>\n * # 设置环境变量\n * set DEEPSEEK_API_KEY=你的API密钥\n *\n * # 启动项目\n * mvn spring-boot:run\n * </pre>\n *\n * @author 蛋奶星星\n * @version 1.0\n * @since 2026-04-29\n */\n@SpringBootApplication\n@MapperScan(\"com.chat.mapper\")\npublic class ChatApplication {\n\n\t/**\n\t * 应用入口\n\t *\n\t * <p>启动 Spring Boot 应用,自动扫描 com.chat 包下的所有组件。</p>\n\t *\n\t * @param args 命令行参数\n\t */\n\tpublic static void main(String[] args) {\n\t\tSpringApplication.run(ChatApplication.class, args);\n\t}\n}"}, "c64f339eebe5e025058a1b767b74e1f4d602d125": {"t": 1785755500.883381, "n": 1448, "h": "f8a1af45999edb14", "c": "package com.chat;\n\nimport org.mybatis.spring.annotation.MapperScan;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n/**\n * <h2>DeepSeek AI 健康助手 — 启动类</h2>\n *\n * <p>基于 Spring Boot 3.5.15 + Spring AI 1.1.5 + MyBatis + MySQL + Ollama\n * 构建的智能健康对话系统。</p>\n *\n * <h3>核心功能模块</h3>\n * <ul>\n * <li><b>多轮对话</b>:支持多用户多会话管理,对话历史持久化到 MySQL</li>\n * <li><b>对话压缩</b>:消息超过 30 条自动生成摘要,减少 token 消耗</li>\n * <li><b>健康数据向量存储</b>:外部传入或 AI 自动提取健康数据,存入向量库</li>\n * <li><b>ToolCalling</b>:AI 可获取当前时间、检索/保存健康数据</li>\n * <li><b>流式输出</b>:支持 SSE 流式对话,逐字返回</li>\n * </ul>\n *\n * <h3>环境要求</h3>\n * <table>\n * <tr><th>组件</th><th>版本</th><th>说明</th></tr>\n * <tr><td>JDK</td><td>21+</td><td>Java 运行环境</td></tr>\n * <tr><td>MySQL</td><td>8.0+</td><td>业务数据 + 向量存储</td></tr>\n * <tr><td>Ollama</td><td>latest</td><td>本地 Embedding 模型服务</td></tr>\n * <tr><td>DeepSeek API</td><td>—</td><td>大语言模型,需配置 DEEPSEEK_API_KEY</td></tr>\n * </table>\n *\n * <h3>启动方式</h3>\n * <pre>\n * # 设置环境变量\n * set DEEPSEEK_API_KEY=你的API密钥\n *\n * # 启动项目\n * mvn spring-boot:run\n * </pre>\n *\n * @author 蛋奶星星\n * @version 1.0\n * @since 2026-04-29\n */\n@SpringBootApplication\n@MapperScan(\"com.chat.mapper\")\npublic class ChatApplication {\n\n\t/**\n\t * 应用入口\n\t *\n\t * <p>启动 Spring Boot 应用,自动扫描 com.chat 包下的所有组件。</p>\n\t *\n\t * @param args 命令行参数\n\t */\n\tpublic static void main(String[] args) {\n\t\tSpringApplication.run(ChatApplication.class, args);\n\t}\n}"}}}}