Skip to content

Feat: deepseek v4 - #14346

Merged
yingfeng merged 3 commits into
infiniflow:mainfrom
Magicbook1108:deepseek
Apr 24, 2026
Merged

yingfeng merged 3 commits into
infiniflow:mainfrom
Magicbook1108:deepseek

Conversation

@Magicbook1108

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Feat: deepseek v4

Type of change

  • New Feature (non-breaking change which adds functionality)

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 24, 2026
@coderabbitai

coderabbitai Bot commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2c9ba2fb-c688-4713-a57b-57779670d929

📥 Commits

Reviewing files that changed from the base of the PR and between 61cb7a7 and 6db3a8f.

📒 Files selected for processing (1)
  • conf/llm_factories.json
✅ Files skipped from review due to trivial changes (1)
  • conf/llm_factories.json

📝 Walkthrough

Walkthrough

Updates DeepSeek factory configuration in conf/llm_factories.json by renaming two model identifiers (deepseek-chat → deepseek-v4-flash, deepseek-reasoner → deepseek-v4-pro) and increasing max_tokens for both models from 64000 to 1000000.

Changes

Cohort / File(s) Summary
DeepSeek Model Configuration
conf/llm_factories.json
Renamed llm identifiers: deepseek-chat -> deepseek-v4-flash, deepseek-reasoner -> deepseek-v4-pro. Increased max_tokens for both entries from 64000 to 1000000. Other fields unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I nibble lines of JSON light,
Two names hopped on through the night.
Tokens stretched, a bounding cheer,
Flash and Pro now leapged near.
🥕✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing critical details. The 'What problem does this PR solve?' section merely repeats the title without explaining the purpose, and lacks background context explaining why DeepSeek v4 is needed. Expand the problem statement to explain the purpose of upgrading to DeepSeek v4, what benefits or fixes it provides, and any relevant context about model capabilities or bug fixes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Feat: deepseek v4' is concise and directly reflects the main change: updating DeepSeek model identifiers and configuration to v4 versions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@Magicbook1108 Magicbook1108 added the ci Continue Integration label Apr 24, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@conf/llm_factories.json`:
- Around line 1137-1144: Update the llm_name values for the DeepSeek entries so
they match the DeepSeek API model IDs: change "DeepSeek-V4-Flash" to
"deepseek-v4-flash" and "DeepSeek-V4-Pro" to "deepseek-v4-pro" (lowercase with
hyphens); locate the llm_name fields in the JSON objects for the DeepSeek models
in conf/llm_factories.json and replace the title-case values accordingly to
avoid "model not found" errors.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1548d593-1e5d-45ba-a10a-2ede159ef02f

📥 Commits

Reviewing files that changed from the base of the PR and between 199fbce and 56a60a8.

📒 Files selected for processing (1)
  • conf/llm_factories.json

Comment thread conf/llm_factories.json Resolved
@yingfeng
yingfeng marked this pull request as draft April 24, 2026 03:53
@yingfeng
yingfeng marked this pull request as ready for review April 24, 2026 03:53
Comment thread conf/llm_factories.json Outdated
"llm_name": "deepseek-chat",
"llm_name": "deepseek-v4-flash",
"tags": "LLM,CHAT,",
"max_tokens": 64000,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max tokens: 1048576

@codecov

codecov Bot commented Apr 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.30%. Comparing base (d84438f) to head (6db3a8f).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14346      +/-   ##
==========================================
- Coverage   97.41%   95.30%   -2.11%     
==========================================
  Files          10       10              
  Lines         695      703       +8     
  Branches      111      112       +1     
==========================================
- Hits          677      670       -7     
- Misses          7       16       +9     
- Partials       11       17       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yingfeng
yingfeng merged commit aadd9a3 into infiniflow:main Apr 24, 2026
1 check passed
Oldcircle added a commit to Oldcircle/ragflow that referenced this pull request Apr 24, 2026
同步 infiniflow/ragflow main(v0.25.0 tag + 后续 commits)。

上游主要变更:
- REST API 大重构:user/tenant/stats/plugin/chunk/document/file2document/
  connector/langfuse/mcp/system/chat/search 全部迁到 api/apps/restful_apis/
- feat: Agent API (infiniflow#14157) / deepseek v4 (infiniflow#14346) / docling native chunking
  (infiniflow#14218) / Astraflow provider (infiniflow#14270) / title chunk 优化 (infiniflow#14325)
- refactor: doc metadata update / agent webhook → REST / 移除 legacy MCP web API
- Go 侧:retrieval_test in GO / stream think chat / zhipu thinking /
  minimax provider / balance command
- 若干 fix:think tags normalization / upload truncation / audio-video pipeline
- 7 个 ingestion_pipeline templates 重命名(Book→book 等)

冲突解决(2 处):
- CLAUDE.md:保留 fork 专属整块(Fork 信息/端口/macOS 本地/活跃文档/首次运行
  记录/Task Executor),追加上游新增的 Working Style 8 条作为独立段
- web/src/pages/dataset/testing/testing-result.tsx:保留 HEAD 版本
  (P1.7-C4 设计对齐版已内含 upstream 要加的 RAGFlowPagination + isRuned 空态
  文案,upstream 版被 HEAD 超集)

验证:
- `pytest test/agent_v2/` → 301 passed / 8 skipped(RAGFLOW_TEST_DB gate)
- 其它冲突文件 auto-merge 成功:dialog_service.py / docker/.env /
  pyproject.toml / uv.lock / locales/en.ts / dataset-table.tsx / testing-form.tsx

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@Magicbook1108
Magicbook1108 deleted the deepseek branch April 28, 2026 09:44
@coderabbitai coderabbitai Bot mentioned this pull request Apr 30, 2026
1 task done
@coderabbitai coderabbitai Bot mentioned this pull request May 29, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants