header-langage
简体中文
繁體中文
English
Tiếng Việt
한국어
日本語
ภาษาไทย
Türkçe
Scan to Download the APP
Partnered With:

DeepSeek officially unveils API tool lazy-loading mechanism, loading on demand without breaking cache.

Beating AI News Flash: Today, DeepSeek updated its official API documentation, officially unveiling the Deferred Tool Loading mechanism.


Previously, when an Agent integrated hundreds of MCP tools, stuffing all tool usage instructions into the context from the start would waste a large amount of tokens. But if the client loaded them on demand, modifying the tool list could invalidate the existing context cache and increase inference costs.


The DeepSeek API allows clients to retrieve tools on demand and then append the definitions of newly added tools to the end of the conversation. This reduces the context occupied by irrelevant tools while preserving the existing cache prefix.


Anthropic and OpenAI have both previously supported similar mechanisms. DeepSeek currently offers this capability only in the Anthropic Messages and OpenAI Responses interfaces of the deepseek-flash model.


In fact, as early as September this year, related implementations had already appeared in the DeepSeek Harness code, and in October developers had already verified it in testing. This update formally writes the capability into the public API documentation to make it easier for third-party developers to integrate.

举报 Correction/Report
RelatedRecommended
DeepSeek V4-Flash Official Version API Launches Public Beta, Offering 1 Million Context, Pondering Mode, and Tool Invocation Capabilities at a Very Low Price.
The road ahead no longer allows it to continue walking with its eyes closed.
The success of DeepSeek has led to a panic in the U.S. capital markets. Share prices of companies such as NVIDIA, ARM, Broadcom, TSMC, Micron, AMD, Intel, and others have all experienced declines. Nasdaq 100 futures plummeted by -400 points, and over $1 trillion in market value has been wiped out from the U.S. stock market.
Price is $3 per million Tokens for input, $6 per million Tokens for output, and $0.025 per million Tokens for cache hit input.
A16Z founder believes DeepSeek R1 is one of the most amazing and impressive breakthroughs he has ever seen, and as an open-source project, it is a profoundly meaningful gift to the world.
Correction/Report
Submit
Add Library
Visible to myself only
Public
Save
Choose Library
Add Library
Cancel
Finish