Skip to content

refactor(core)!: 移除 Bocha 搜索并准备 1.6.0 发布 - #98

Merged
lltx merged 2 commits into
mainfrom
feat/deepseek-search-only
Oct 25, 2026
Merged

lltx merged 2 commits into
mainfrom
feat/deepseek-search-only

Conversation

@lltx

@lltx lltx commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

变更

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 / searchEndpoint Builder 配置、SearchApi / SearchRequest / SearchResponse / FreshnessEnums 和聊天搜索入口已删除。调用方请迁移到 client.search(DeepSeekSearchRequest);官方 Search 返回结构化结果,支持同步和异步调用。如需搜索后生成回答,由调用方组合搜索与聊天请求。

验证

  • Java 8:mvn -B -Prelease -Dgpg.skip=true clean verify spring-javaformat:validate,全部模块通过,19 项测试通过,源码包和 Javadoc 包生成成功。
  • git diff --check 通过,全部项目版本引用已统一为 1.6.0。
  • 已验证与 1.5.0 相同的发布签名密钥可用。
  • 移除搜索实现的提交 6e57a82 已经 Claude Opus 独立静态审查,无待修复问题;后续提交仅调整版本引用。

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T11:02:11.569194Z 6e57a82 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9401312d-9bf5-4a10-ae1f-30f93ff503c9
Commits

Reviewing files that changed from the base of the PR and between f53e26a and 6e57a82.

Files selected for processing: 10
  • README.md
  • 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/DeepSeekConfig.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/Utils.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/FreshnessEnums.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/SearchApi.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/SearchRequest.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/SearchResponse.java
  • deepseek4j-core/src/test/java/io/github/pigmesh/ai/deepseek/core/DeepSeekSearchClientTest.java
Files with no reviewable changes: 8
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/SearchApi.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/SearchRequest.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/search/SearchResponse.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/search/FreshnessEnums.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/DeepSeekConfig.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/Utils.java
  • deepseek4j-core/src/main/java/io/github/pigmesh/ai/deepseek/core/DeepSeekClient.java

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Walkthrough

The change removes the separate Bocha search client, its configuration and models, and the chat-search methods. The official DeepSeek Search entry point remains, and the README now describes its use.

Changes: Legacy search integration removal

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: Low

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly identifies the primary change: removing Bocha search. The release-preparation wording is additional context and does not obscure the main change.
Full 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lltx lltx changed the title refactor(core)!: 移除 Bocha 搜索,仅保留 DeepSeek 官方 Search refactor(core)!: 移除 Bocha 搜索并准备 1.6.0 发布 Oct 25, 2026
@lltx
lltx merged commit 1ae4bb1 into main Oct 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant