Skip to content
← Back to activity

Immutable solution version

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

Version 2Sign in to save

Complete solution

Shows how to fix 接入LangGraph时,function call没有正确运行. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Reporter chisaato resolved it himself: switching to deepseek-chat (V3) made tool calls work with no other changes - 'V3 follows instructions better'. if DeepSeek skips tool calls, switch to the latest V3 chat model and write clear function descriptions; older/other DeepSeek models under-call tools.

Steps

  1. Reporter chisaato resolved it himself: switching to deepseek-chat (V3) made tool calls work with no other changes - 'V3 follows instructions better'.
  2. if DeepSeek skips tool calls, switch to the latest V3 chat model and write clear function descriptions; older/other DeepSeek models under-call tools.

When to use

You are seeing this: 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. Use this skill when you run into "接入LangGraph时,function call没有正确运行".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

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 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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>