Hope for add support for deepseek-v4
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định hàm “Translate with different services” và cấu hình model mặc định của DeepSeek, sau đó lần theo request chat-completions tương thích với OpenAI. Kiểm tra tài liệu API của DeepSeek cho deepseek-v4-pro và deepseek-v4-flash, bao gồm thiết lập thinking trong extra_body; hoàn tất nghĩa là cả hai model đều có thể được chọn và thinking có thể được tắt cho các request.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before you asking
- I have tried the PDFMathTranslate-next and give feedback in PDFMathTranslate-next
Is your feature request related to a problem?
In Translate with different services function,the default model for DeepSeek is deepseek-chat which is a model without thinking. However, deepseek-v4 pro and flash has already published and in the future deepseek-chat will not be supported by DeepSeek . If we want to close think function,we must change the origin code. So we need add support for deepseek-v4 pro and flash.
Describe the solution you'd like
According to document of DeepSeek API.
The new url is https://api.deepseek.com
The way to close thinging for both pro and flash is:
response = client.chat.completions.create(
model="deepseek-v4-pro",
...
extra_body={"thinking": {"type": "disabled"}}
)
Additional context
deepseek-chat (将于 2026/07/24 弃用)
deepseek-reasoner (将于 2026/07/24 弃用)
(1) 默认思考开关为 enabled
(2) 思考模式下,对普通请求,默认 effort 为 high;对一些复杂 Agent 类请求(如 Claude Code、OpenCode),effort 自动设置为 max
(3) 思考模式下,出于兼容考虑 low、medium 会映射为 high, xhigh 会映射为 max
您在使用 OpenAI SDK 设置 thinking 参数时,需要将 thinking 参数传入 extra_body 中:
response = client.chat.completions.create(
model="deepseek-v4-pro",
...
reasoning_effort="high",
extra_body={"thinking": {"type": "enabled"}}
)
- Ngôn ngữ chính
- Python
- Star
- 37.3k
- Fork
- 3.3k
- Merge trung bình
- 11 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PDFMathTranslate/PDFMathTranslate
-
TencentTranslator sends chunks larger than the API limit for single lines longer than 5000 charsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
PDFMathTranslate/PDFMathTranslate#1205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
PDFMathTranslate/PDFMathTranslate#1199 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PDFMathTranslate/PDFMathTranslate#1196 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
PDFMathTranslate/PDFMathTranslate#1194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PDFMathTranslate/PDFMathTranslate#1167 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PDFMathTranslate/PDFMathTranslate
Issue tương tự
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#132042 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
deepset-ai/haystack#13092 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
EverMind-AI/Raven#845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] 移除「切换到旧版知识库」入口Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AstrBotDevs/AstrBot#10340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BasedHardware/omi#20401 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày