{"id":26112098,"url":"https://github.com/pig-mesh/deepseek4j","last_synced_at":"2026-04-25T03:52:21.664Z","repository":{"id":276245899,"uuid":"928679872","full_name":"pig-mesh/deepseek4j","owner":"pig-mesh","description":"deepseek java sdk ","archived":false,"fork":false,"pushed_at":"2026-04-25T01:38:46.000Z","size":201,"stargazers_count":751,"open_issues_count":13,"forks_count":145,"subscribers_count":10,"default_branch":"main","last_synced_at":"2026-04-25T03:31:40.523Z","etag":null,"topics":["deepseek","deepseek-r1","java","openai","spring-boot","spring-boot-3","spring-boot-4"],"latest_commit_sha":null,"homepage":"https://javaai.pig4cloud.com/deepseek","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/pig-mesh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-02-07T03:25:13.000Z","updated_at":"2026-04-25T01:38:49.000Z","dependencies_parsed_at":"2025-03-05T02:25:00.984Z","dependency_job_id":"1cac5cc7-97fe-4295-b8d0-58fcbdf42a39","html_url":"https://github.com/pig-mesh/deepseek4j","commit_stats":null,"previous_names":["pig-mesh/deepseek4j"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/pig-mesh/deepseek4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pig-mesh%2Fdeepseek4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pig-mesh%2Fdeepseek4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pig-mesh%2Fdeepseek4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pig-mesh%2Fdeepseek4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pig-mesh","download_url":"https://codeload.github.com/pig-mesh/deepseek4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pig-mesh%2Fdeepseek4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32249492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T03:17:44.950Z","status":"ssl_error","status_checked_at":"2026-04-25T03:16:45.208Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deepseek","deepseek-r1","java","openai","spring-boot","spring-boot-3","spring-boot-4"],"created_at":"2025-03-10T02:02:05.372Z","updated_at":"2026-04-25T03:52:21.636Z","avatar_url":"https://github.com/pig-mesh.png","language":"Java","funding_links":[],"categories":["Openai","人工智能"],"sub_categories":[],"readme":"# deepseek4j （DeepSeek Java SDK）\n\n详细的使用文档请访问：[https://javaai.pig4cloud.com/deepseek](https://javaai.pig4cloud.com/deepseek)\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.pig-mesh.ai/deepseek4j.svg?style=flat-square)](https://maven.badges.herokuapp.com/maven-central/io.github.pig-mesh.ai/deepseek4j)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\ndeepseek4j 是面向 DeepSeek 推出的 Java 开发 SDK，支持 DeepSeek R1 和 V3 全系列模型。提供对话推理、函数调用、JSON结构化输出、以及基于 OpenAI 兼容 API 协议的嵌入向量生成能力。通过 Spring Boot Starter 模块，开发者可以快速为 Spring Boot 2.x/3.x 以及 Solon 等主流 Java Web 框架集成 AI 能力，提供开箱即用的配置体系、自动装配的客户端实例，以及便捷的流式响应支持。\n\n## 特性\n\n- 完整的 DeepSeek API 支持，支持返回思维链和会话账单\n- 支持 WebSearch 联网搜索\n- 支持自定义连接参数、代理配置、超时设置、请求响应日志\n- Reactor 响应式支持，简化流式返回开发\n  \n## 快速开始\n\n### Maven 依赖\n\n在你的 `pom.xml` 中添加以下依赖：\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.pig-mesh.ai\u003c/groupId\u003e\n    \u003cartifactId\u003edeepseek-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e1.4.7\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### 基础配置\n\n在 `application.yml` 或 `application.properties` 中添加必要的配置：\n\n```yaml\ndeepseek:\n  api-key: your-api-key-here\n```\n\n### 1. 快速入门\n\n```java\n@Autowired\nprivate DeepSeekClient deepSeekClient;\n\n// sse 流式返回\n@GetMapping(value = \"/chat\", produces = MediaType.TEXT_EVENT_STREAM_VALUE)\npublic Flux\u003cChatCompletionResponse\u003e chat(String prompt) {\n    return deepSeekClient.chatFluxCompletion(prompt);\n}\n```\n\n### 2. 前端调试\n\n双击运行根目录的 sse.html 文件，即可打开调试页面。在页面中输入后端 SSE 接口地址，点击发送后可实时查看推理过程和最终结果。页面提供了完整的前端实现代码，可作为集成参考。\n\n\u003cimg src='https://minio.pigx.vip/oss/202502/1738864340.png' alt='1738864340'/\u003e\n\n\n## 许可证与致谢\n\n本项目基于 [Apache License 2.0](LICENSE) 许可证开源。\n\n项目设计灵感来源于 [OpenAI4J](https://github.com/ai-for-java/openai4j) 项目，由于其不再维护，在其优秀架构设计的基础上：\n- 扩展了 DeepSeek 特有功能\n- 增强了 Reactor 响应式支持\n- 提供了更完整的 Spring Boot 集成\n\n## 相关链接\n\n- [PIG AI ](https://ai.pig4cloud.com)\n- [DeepSeek 官方文档](https://platform.deepseek.com)\n- [OpenAI4J 项目](https://github.com/ai-for-java/openai4j)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpig-mesh%2Fdeepseek4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpig-mesh%2Fdeepseek4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpig-mesh%2Fdeepseek4j/lists"}