🔧 AI Nachrichten OpenAI’s GPT-6 Astra now available in Microsoft applications(08.09.2026 um 18:30 Uhr)
🔧 AI Nachrichten Build vs Buy: When to Outsource Machine Learning Development(10.09.2026 um 18:40 Uhr)
🔧 AI Nachrichten SchemaCrawler LLM Context: Extract and Prune Relational DB Schemas(10.09.2026 um 21:34 Uhr)
🔧 AI Nachrichten How to Evaluate Live & Voice Agents in ADK(14.09.2026 um 10:44 Uhr)
🔧 AI Nachrichten Autonomous LLM post-training with Tunix on TPUs(14.09.2026 um 10:44 Uhr)
🔧 AI Nachrichten Optimize an AI Agent to Sound Human, Judged by an AI Detector(08.09.2026 um 21:00 Uhr)
🔧 AI Nachrichten Apple-OpenAI Fight Escalates With New MacBook Evidence(08.09.2026 um 21:23 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra now available in Microsoft applications(08.09.2026 um 18:30 Uhr)
🔧 AI Nachrichten Build vs Buy: When to Outsource Machine Learning Development(10.09.2026 um 18:40 Uhr)
🔧 AI Nachrichten SchemaCrawler LLM Context: Extract and Prune Relational DB Schemas(10.09.2026 um 21:34 Uhr)
🔧 AI Nachrichten How to Evaluate Live & Voice Agents in ADK(14.09.2026 um 10:44 Uhr)
🔧 AI Nachrichten Autonomous LLM post-training with Tunix on TPUs(14.09.2026 um 10:44 Uhr)
🔧 AI Nachrichten Optimize an AI Agent to Sound Human, Judged by an AI Detector(08.09.2026 um 21:00 Uhr)
🔧 AI Nachrichten Apple-OpenAI Fight Escalates With New MacBook Evidence(08.09.2026 um 21:23 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 6 Min Lesezeit
0

DeepSeek's Response API Isn't OpenAI Responses. That One Parser Mistake Drops the Reasoning.

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

I keep seeing developers use "DeepSeek response API" and "OpenAI Responses API" as if they mean the same thing.



They do not.



That small naming mistake can make your integration look like it works while quietly dropping the most important field in the response: reasoning_content.



I spent time checking the DeepSeek V4 docs and the live TokenMix model catalog. The practical answer is simple:



DeepSeek is OpenAI-compatible at the Chat Completions layer. It is not documented as OpenAI /responses compatible.






TL;DR




  • No, DeepSeek's response protocol is not the OpenAI /responses API. It is /chat/completions.

  • The important extra field is choices[0].message.reasoning_content.

  • If your wrapper only parses message.content, you may lose DeepSeek's thinking output.

  • DeepSeek V4 now uses deepseek-v4-flash and deepseek-v4-pro; old deepseek-chat and deepseek-reasoner names are scheduled for deprecation.

  • TokenMix supports DeepSeek V4 Flash and Pro through one OpenAI-compatible base URL, with reasoning, streaming, JSON, tools, structured output, and prompt caching marked in its live catalog.






What actually changed



DeepSeek V4 moved the model naming story forward.



The old mental model was:




















Old model name What people assumed
deepseek-chat normal chat
deepseek-reasoner reasoning model


The newer V4 model IDs are:




















New model Best read
deepseek-v4-flash cheaper/high-throughput V4
deepseek-v4-pro stronger reasoning/coding V4


DeepSeek's docs say the older deepseek-chat and deepseek-reasoner names are compatibility aliases heading toward deprecation on 2026-07-24 15:59 UTC.



That means I would not build new production code around the old names.






The response object that matters



If you are used to OpenAI Chat Completions, this will look familiar:




CODE
{
"choices": [
{
"message": {
"content": "final answer",
"reasoning_content": "thinking output",
"tool_calls": []
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"completion_tokens_details": {
"reasoning_tokens": 300
}
}
}






The trap is that most basic wrappers only do this:




CODE
answer = response.choices[0].message.content






That gets the final answer.



It does not get the thinking output.



For some products, that is fine. For debugging, evals, agent traces, and tool workflows, it is not fine.






The parser I would use



I would parse DeepSeek responses explicitly:




CODE
def parse_deepseek_response(response):
choice = response.choices[0]
message = choice.message

return {
"answer": getattr(message, "content", None),
"reasoning": getattr(message, "reasoning_content", None),
"tool_calls": getattr(message, "tool_calls", None),
"finish_reason": choice.finish_reason,
"usage": getattr(response, "usage", None),
}






That is not fancy. It is the minimum safe parser.



The point is not to show chain of thought to users. The point is to avoid silently losing fields that affect debugging, evals, and tool-call continuation.






The tool-call caveat



This is the part I would not ignore.



DeepSeek's thinking-mode docs distinguish normal multi-turn chat from tool-call workflows.



For ordinary multi-turn conversations, you do not need to pass prior chain-of-thought content back.



But when tool calls are involved, DeepSeek says the intermediate reasoning_content after a tool call must be passed back in the following request.



That means a generic OpenAI wrapper can fail in a very boring way:




  1. It receives reasoning_content.

  2. It stores only role and content.

  3. It calls your tool.

  4. It sends the next request without the reasoning field.

  5. The model's tool workflow loses context.



That is the kind of bug that does not always crash. It just makes the agent worse.






The decision tree



Here is how I would decide what to implement:




CODE
def deepseek_integration_plan(app):
if app["uses_old_model_names"]:
return "Migrate from deepseek-chat/deepseek-reasoner to deepseek-v4-flash or deepseek-v4-pro."

if app["uses_tools"] and app["thinking_enabled"]:
return "Preserve reasoning_content across tool-call turns. Do not use a content-only wrapper."

if app["needs_json"]:
return "Use response_format={\"type\":\"json_object\"} and still validate the result."

if app["high_volume"]:
return "Start with deepseek-v4-flash and track cache hit/miss tokens."

if app["hard_reasoning"]:
return "Benchmark deepseek-v4-pro with reasoning enabled."

return "Use Chat Completions compatibility, but parse DeepSeek-specific fields explicitly."






I like this tree because it avoids the biggest false choice.



The question is not "Is DeepSeek OpenAI-compatible?"



The question is "Which compatibility layer are you depending on?"






TokenMix angle: one endpoint, but still parse the fields



TokenMix exposes DeepSeek through an OpenAI-compatible base URL:




CODE
https://api.tokenmix.ai/v1






The live catalog currently lists:
































Model Reasoning JSON Tools Streaming Prompt cache
deepseek/deepseek-v4-flash yes yes yes yes yes
deepseek/deepseek-v4-pro yes yes yes yes yes


That is useful because you can route DeepSeek alongside OpenAI, Claude, Gemini, Qwen, GLM, and other models through one endpoint.



But the same caveat remains:



OpenAI-compatible routing gets the request through.



Correct parsing still belongs to you.






Cost math in one minute



The cost story is also easy to misunderstand.



DeepSeek direct pricing separates cache-hit input, cache-miss input, and output tokens.



TokenMix publishes catalog rates for routing through its endpoint.



For example, using the live TokenMix catalog rates I checked:























Model Input / 1M Output / 1M
DeepSeek V4 Flash $0.132353 $0.264706
DeepSeek V4 Pro $0.419118 $0.838235


So a 10M input / 2M output workload is roughly:




CODE
Flash = 10 * 0.132353 + 2 * 0.264706 = $1.85
Pro = 10 * 0.419118 + 2 * 0.838235 = $5.87






That makes Flash the obvious first route for high-volume tasks.



I would only pay for Pro where Flash fails on your actual evals.






What I'd do in production



If I were shipping DeepSeek V4 this week, I would:




  • Stop using old model names in new code.

  • Parse content, reasoning_content, tool_calls, finish_reason, and usage.

  • Preserve reasoning_content in thinking-mode tool workflows.

  • Use JSON mode only with explicit prompt instructions and validation.

  • Track cache hit/miss tokens separately.

  • Start with Flash, then escalate to Pro only on failing tasks.

  • Put DeepSeek behind a router instead of making it the only backend.



That last point matters.



One endpoint does not remove the need for fallback.



It just makes fallback less painful.






Disclosure



If you want DeepSeek, OpenAI, Claude, Gemini, Qwen, GLM and other models behind one OpenAI-compatible endpoint, that is roughly what .






Bottom line



DeepSeek response compatibility is real, but it is not the OpenAI Responses API.



Treat it as Chat Completions compatibility plus DeepSeek-specific fields. Parse reasoning_content intentionally, migrate to V4 model IDs, and do not let a generic wrapper quietly erase the data you need for reasoning, tools, and evals.



Have you seen OpenAI-compatible wrappers drop provider-specific fields like reasoning_content or cache usage? How did you handle it?

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
Why Companies Build Custom Photoshop Plugins (And When You Need One Too)
2 Quellen
Mastering Claude and ChatGPT: Developers Guide to Advanced Prompting
1 Quelle
SchemaCrawler LLM Context: Extract and Prune Relational DB Schemas
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten DeepSeek's Response API Isn't OpenAI Responses. That One Parser Mistake Drops the Reasoning.

Thematisch verwandte Begriffe: DeepSeeks, Response, Isnt, OpenAI · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...