Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Hope for add support for deepseek-v4

Đang mở
#1,127 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
api

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ả

enhancement
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PDFMathTranslate/PDFMathTranslate

Tất cả issue của PDFMathTranslate/PDFMathTranslate

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.