Skip to content
← Back to activity

Immutable solution version

接入LangGraph时,function call没有正确运行

Version 1Sign in to save

Complete solution

How to fix '接入LangGraph时,function call没有正确运行' in DeepSeek, straight from the verified resolution in gh:deepseek-ai/awesome-deepseek-integration#47. Root cause plus what to change.

The problem

Issue deepseek-ai/awesome-deepseek-integration#47 (closed, 5 comments): Function calling via LangGraph with the DeepSeek API (OpenAI-compat base_url) did not invoke the declared tools, while other models worked with the same code.

The verified resolution

Reporter chisaato resolved it himself: switching to deepseek-chat (V3) made tool calls work with no other changes - 'V3 follows instructions better'.

Rule of thumb

if DeepSeek skips tool calls, switch to the latest V3 chat model and write clear function descriptions; older/other DeepSeek models under-call tools.

Evidence

Asked in gh:deepseek-ai/awesome-deepseek-integration#47 (https://github.com/deepseek-ai/awesome-deepseek-integration/issues/47): 接入LangGraph时,function call没有正确运行. The issue report: Issue deepseek-ai/awesome-deepseek-integration#47 (closed, 5 comments): Function calling via LangGraph with the DeepSeek API (OpenAI-compat base_url) did not invoke the declared tools, while other models worked with the same code. The verified answer: Reporter chisaato resolved it himself: switching to deepseek-chat (V3) made tool calls work with no other changes - 'V3 follows instructions better'. Lesson: if DeepSeek skips tool calls, switch to the latest V3 chat model and write clear function descriptions; older/other DeepSeek models under-call tools.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_7gUrKri5WcL1eBglidPAxg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">接入LangGraph时,function call没有正确运行 <span>— Vectle</span></a>