Hope for add support for deepseek-v4
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 52/100
Direção de pesquisa
Comece localizando a função “Translate with different services” e a configuração do modelo padrão do DeepSeek; em seguida, acompanhe a solicitação de chat-completions compatível com OpenAI. Consulte a documentação da API do DeepSeek para deepseek-v4-pro e deepseek-v4-flash, incluindo a configuração thinking de extra_body; considera-se concluído quando ambos os modelos puderem ser selecionados e thinking puder ser desativado para as solicitações.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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"}}
)
- Linguagem predominante
- Python
- Estrelas
- 37.3k
- Forks
- 3.3k
- Merge médio
- 11min
- PRs com merge (30d)
- 1
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PDFMathTranslate/PDFMathTranslate
-
TencentTranslator sends chunks larger than the API limit for single lines longer than 5000 charsTalvez já em andamento @Morningstar202604 assumiu há 5 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
PDFMathTranslate/PDFMathTranslate#1205 ·
Mantenedores costumam responder em até 1 dia
-
Fix UnboundLocalError in ZhipuTranslator error handlerTalvez já em andamento @pamod-madubashana assumiu há 11 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
PDFMathTranslate/PDFMathTranslate#1199 ·
Mantenedores costumam responder em até 1 dia
-
[Bug] Proxy + IPv6 [::] binding prevents GUI dynamic fields from appearingTalvez já em andamento @lorenzozanee assumiu há 11 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
PDFMathTranslate/PDFMathTranslate#1196 ·
Mantenedores costumam responder em até 1 dia
-
Fix _remove_circular_references nulling shared non-circular config valuesTalvez já em andamento @pamod-madubashana assumiu há 16 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
PDFMathTranslate/PDFMathTranslate#1194 ·
Mantenedores costumam responder em até 1 dia
-
tencentcloud-sdk-python-tmt unpinned dependency breaks import (TextTranslateRequest removed in 3.1.x)Talvez já em andamento @BetterAndBetterII assumiu há 48 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
PDFMathTranslate/PDFMathTranslate#1167 · 1 comentário · 2 reações ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PDFMathTranslate/PDFMathTranslate
Issues semelhantes
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")Talvez já em andamento @mayureshsonawane17 assumiu hoje. AbertaWaiting for: Product Owner
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Add .devin pluginAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
ayghri/i-have-adhd#249 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
modelscope/FunASR#3762 ·
Mantenedores costumam responder em até 1 dia