Repository navigation
refactor(core)!: 移除 Bocha 搜索并准备 1.6.0 发布 - #98
Conversation
Keep DeepSeek official Search as the only search integration. BREAKING CHANGE: remove Bocha search models, searchApiKey/searchEndpoint builder options, and chatSearchCompletion/chatSearchStreamingCompletion APIs. Use search(DeepSeekSearchRequest) for official DeepSeek search results.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Legacy search contracts deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/* |
The Bocha search API, request and response models, and freshness enum are removed. |
Client configuration and chat-search removal deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/DeepSeekConfig.java, deepseek-spring-boot-starter/src/main/java/io/github/pigmesh/ai/deepseek/config/DeepSeekAutoConfiguration.java, deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/DeepSeekClient.java, deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/Utils.java, deepseek4j-core/src/test/java/io/github/pigmesh/ai/deepseek/core/DeepSeekSearchClientTest.java |
The client no longer configures the separate search API or exposes chat-search methods. The related credential, result formatter, and test configuration are removed or updated. |
Search documentation README.md |
The README describes client.search(request) as the unified official Search entry point and removes references to Bocha-based web-search Q&A. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Possibly related PRs
- pig-mesh/deepseek4j#97: Adds the official Search entry point and models that this change retains while removing the separate Bocha integration.
Suggested reviewers: dudiao
Merge Risk: 
Minimal · up to 6e57a
-
The intentional breaking API removal is internally consistent and the retained Search functionality remains operational.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
变更
1.6.0 将搜索统一到 DeepSeek 官方
client.search(DeepSeekSearchRequest),沿用 DeepSeek API Key 和基础地址。删除 Bocha HTTP 客户端、专用模型与配置绑定,以及基于 Bocha 的chatSearchCompletion(...)/chatSearchStreamingCompletion(...)。父 POM、core / starter 的版本引用、示例依赖和 README 同步从 1.5.0 升到 1.6.0,准备发布到 Maven Central。默认模型保留
deepseek-flash。兼容性
这是破坏性 API 清理:原有
searchApi/searchApiKey/searchEndpointBuilder 配置、SearchApi/SearchRequest/SearchResponse/FreshnessEnums和聊天搜索入口已删除。调用方请迁移到client.search(DeepSeekSearchRequest);官方 Search 返回结构化结果,支持同步和异步调用。如需搜索后生成回答,由调用方组合搜索与聊天请求。验证
mvn -B -Prelease -Dgpg.skip=true clean verify spring-javaformat:validate,全部模块通过,19 项测试通过,源码包和 Javadoc 包生成成功。git diff --check通过,全部项目版本引用已统一为 1.6.0。6e57a82已经 Claude Opus 独立静态审查,无待修复问题;后续提交仅调整版本引用。