mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2026-11-05 00:47:48 +00:00
[GH-ISSUE #15] v3 repetitive function call ? #10
Labels
No labels
closed-as-stale
enhancement
question
spam
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-V3#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smallufo on GitHub (Dec 27, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/15
This is my function call (simulate weather service)
request
deepseek reply (with funCall request)
And I reply :
BUT deepseek asks again !!! Instead of summarize the weather data.
This situation won't occur on OpenAI's function calling.
Is there anything wrong ?
Thanks.
@witherleaves commented on GitHub (Dec 28, 2024):
I also encountered this issue when calling it in lobechat, where the function kept being called repeatedly
@whisper-bye commented on GitHub (Dec 28, 2024):
Please improve support for tool calls, preferably openai's
beta.chat.completions.parse, which is critical for agent-related uses.@haicheviet commented on GitHub (Dec 30, 2024):
The same problem for me as well, can not use v3 model for function calling yet.
@otakustay commented on GitHub (Dec 31, 2024):
+1, encountered this
https://github.com/user-attachments/assets/82696a23-df86-43b1-9063-9747a0ff700d
@mowentian commented on GitHub (Dec 31, 2024):
Thank you for your feedback. We have also observed this issue and have been actively working on resolving it over the past few days...
@gao123qiang commented on GitHub (Jan 2, 2025):
Has the problem been solved?
@graysonchen commented on GitHub (Jan 2, 2025):
Thanks for resolving it. I can't wait....
BTW, any update?
@DillionApple commented on GitHub (Jan 2, 2025):
Thanks for your feedback. We have applied some quick fixes, but the Function Calling feature is still unstable in this version. We will continue to work on the issue and hopefully it will be resolved in the next major version of DeepSeek-V3.
@a-hariti commented on GitHub (Jan 3, 2025):
+1
I'm using it with the Vercel AI sdk and it keeps looping
@ninghao commented on GitHub (Jan 5, 2025):
same :)
@Devincool commented on GitHub (Jan 6, 2025):
+1
@vincent-pli commented on GitHub (Jan 6, 2025):
+1, cannot support groupchat pattern in multiple agents with function call, I leverage autogen, not work as expected
@ro-hansolo commented on GitHub (Jan 7, 2025):
So the temporary fix I have come upon with, that seems to fix this, is appending a user message with the function response to the messages array before sending it to the model too.
This seems to get the model to respond too the tool use, but this is tacky and still sometimes creates 2 function calls before working. This needs to be fixed asap however
@leslie2046 commented on GitHub (Jan 8, 2025):
+1

@Devincool commented on GitHub (Jan 8, 2025):
Not work for me
@mgisr commented on GitHub (Jan 8, 2025):
same🧐
@ro-hansolo commented on GitHub (Jan 9, 2025):
As I mentioned before it doesn't work on the first go always for me also, but the loop ends after a second function call atleast
However considering we're paying per token this needs to be fixed ASAP by the devs
@LittleLittleCloud commented on GitHub (Jan 9, 2025):
same
@DillionApple commented on GitHub (Jan 9, 2025):
Thanks for your feedback, DeepSeek Engineer here. The Function Calling feature is still unstable in this version. We will continue to work on the issue and hopefully it will be resolved in the next major version of DeepSeek-V3.
@Hairi81 commented on GitHub (Jan 11, 2025):
Dear DillionApple,
If the function calling is still unstable then how does the search feature in chat.deepseek.com work?
Also, can you give an estimated time until the next release that will fix this issue?
Thank you for your attention and time
@leinad59 commented on GitHub (Jan 15, 2025):
+1
@lilyjunefield commented on GitHub (Jan 15, 2025):
Ran into this myself creating a DeepSeek powered CLI tool. The tool would go into an infinite loop using the DeepSeek API when calling tools. Not always but about 80% of the time from my testing.
@kermankohli commented on GitHub (Jan 16, 2025):
+1. wasted so much time on this.
@nils010485 commented on GitHub (Jan 16, 2025):
+1 Same issue, the model is unusable with the tools for now
@a-hariti commented on GitHub (Jan 17, 2025):
to be fair it responds with json when asked for one thing
I tried it with the Vercel AI SDK to
generateObjectand it worksIt's not far off!
@crixue commented on GitHub (Jan 19, 2025):
I meet the same issue. Even I tried different temperatures and refine the system prompt like:
You serve as an intelligent assistant. You must give your final answer in 1 rounds tool calls. And if you don't know the answer, just answer 'Sorry, I don't know'
It still repeat to call the tool until the input tokens exceed 64k context tokens limit. I leverage the langchain components to call agent to call tools. Qwen-max and Gpt-4o have a good understanding the various system prompt, but deepseek-v3 is not. It's so frustrating, even though the price is cheap.
@chendwww commented on GitHub (Jan 19, 2025):
+1
@chendwww commented on GitHub (Jan 19, 2025):
+1
@chendwww commented on GitHub (Jan 19, 2025):
+1
@catusax commented on GitHub (Jan 20, 2025):
same problem, my solution is remove the
toolssection in the too response message, so the model will have no tools to call in the next round@rovnyart commented on GitHub (Jan 20, 2025):
+1
@tempurai commented on GitHub (Jan 20, 2025):
+1
@graysonchen commented on GitHub (Jan 21, 2025):
https://github.com/deepseek-ai/DeepSeek-V3/issues/15#issuecomment-2567432464
@DillionApple Thanks updated. So, approximately what time would that be?
@golforado commented on GitHub (Jan 21, 2025):
+1
@aaahariri commented on GitHub (Jan 22, 2025):
+1
Also noticed that it wasn’t reliable with tools. Any update on properly supporting tools/function calling?
@koko0v0 commented on GitHub (Jan 22, 2025):
+1
Would love to see if there is any update on this
@teddyzxcv commented on GitHub (Jan 23, 2025):
+1 encountered with this problem in tool calling for n8n workflow
@tahafatih commented on GitHub (Jan 27, 2025):
Same issue here
@Sanket9225 commented on GitHub (Jan 27, 2025):
Facing same issue, please fix this asap, Without tool calling developers can not build anything from it. At most it will support RAG, but nothing agentic.
@kevintsai1202 commented on GitHub (Jan 28, 2025):
The new model has been released, but the function calling feature is still not fixed. This is an essential functionality for developing agents. I hope it gets resolved soon.
@Hairi81 commented on GitHub (Jan 28, 2025):
Dear @mowentian @DillionApple
It's been over a month and you've released a new CoT reasoning model, R1, yet still haven't fixed this issue.
Does the team need the community help to optimize/post train multi-turn native function calling?
If you're able to provide more detail on how the function calling was trained (JSON with SFT/RL?)
perhaps the community can assists in fixing this issue
Best Regards,
Hairi
@huangmouren2023 commented on GitHub (Jan 28, 2025):
是不是缓存命中的锅?我一直觉得,应该给这个机制增加一个可以选择配置开启关闭的开关
@Hairi81 commented on GitHub (Jan 28, 2025):
It could also be the cache hit but I've seen other OS LLM models experiencing similar infinite loop, they were having difficulties escaping the function call params inside the JSON and understanding delimiters
@heshengtao commented on GitHub (Jan 28, 2025):
调用deepseek API时遇到了同样的问题,在调用代码解释器工具后,工具已经返回了正确的结果,但是模型无法从工具结果中回复用户,而是强迫症一般重新调用工具。
希望贵团队可以加快修复该问题,这对我们基于deepseek开发智能体真的很重要,感谢贵团队的贡献!新年快乐!
@kimifish commented on GitHub (Feb 3, 2025):
I'm getting
openai.APIStatusError: Error code: 405 - {'detail': 'Tool calling is not supported for model: deepseek-ai/DeepSeek-V3'}while using langchain-deepseek library. Is that somehow connected with unstable function calls? Or that's another problem in my case?@SavetheTears commented on GitHub (Feb 5, 2025):
i believe you did not initialise the model correctly, check your code where you used ChatOpenAI, the params should include model, base_url, and your deepseek key.
@2000calories commented on GitHub (Feb 5, 2025):
Same issue here
@KernelDeimos commented on GitHub (Feb 5, 2025):
Wow, astonishing. Function calling has been completely broken since this model was released, and it's still in the API docs as if this feature was ever available. Good job guys 👌💯
@kermankohli commented on GitHub (Feb 5, 2025):
this is the stuff you don’t see on twitter…
Kerman Kohli
On 6 Feb 2025 at 7:19 AM +1100, Eric Dubé @.***>, wrote:
@wilsonwang371 commented on GitHub (Feb 6, 2025):
@KernelDeimos commented on GitHub (Feb 6, 2025):
@wilsonwang371 fair enough, I redact part of my statement while still being surprised it hasn't been fixed yet (especially when a system message seems to be able to tell DeepSeek about the tool results... makes it seem like there's a bug somewhere)
@kevintsai1202 commented on GitHub (Feb 7, 2025):
This company only focuses on developing models, and their stability and after-sales service are extremely poor.
@JoeLan96 commented on GitHub (Feb 8, 2025):
So am I, This problem still exists.
@brinkqiang commented on GitHub (Feb 8, 2025):
可先用阿里 qwen-plus 目前测试可用。
@zensh commented on GitHub (Feb 17, 2025):
@mowentian
Our sample code for the AI Agent integrated with the ICP blockchain is not yet functional. We hope to fix Function Calling soon—it is the foundation for implementing the AI Agent. 🫡
https://github.com/ldclabs/anda/blob/main/examples/icp_ledger_agent/README.md
@FujiwaraChoki commented on GitHub (Mar 1, 2025):
+1
@hubin858130 commented on GitHub (Mar 4, 2025):
+111111111111111
@lilyjunefield commented on GitHub (Mar 6, 2025):
This bug continues to be an impediment for integrating DeepSeek into my project. I'm really hopeful that it will be fixed soon.
@JonahWhaler commented on GitHub (Mar 12, 2025):
This is a serious issue, wasted plenty of tokens here.
My workaround:
Set the maximum rounds the LLM is allowed to run, then force the LLM to wrap up the session.
@khanakia commented on GitHub (Mar 14, 2025):
i am having same issue it just keep asking me to run tool_call again and again
@DillionApple commented on GitHub (Mar 24, 2025):
The issue has been mitigated for the deepseek-chat model now, resulting in significantly more stable function calling performance. However, in multi-turn conversation scenarios, the stability is still not optimal, and we are continuously working on further improvements.
@graysonchen commented on GitHub (Mar 24, 2025):
@DillionApple Thanks, well done, I’m glad to hear this. Keep going.
@smallufo commented on GitHub (Mar 26, 2025):
ask :
DS reply , with multiple function call :
and I reply :
And DS conclusion :
Well done ! 💯 Thank you !
@lilyjunefield commented on GitHub (Mar 26, 2025):
Since this is closed I'll add DeepSeek support into the O Agentic Design CLI Framework today, thank you to everyone involved for escalating this issue.
It is a shame this was not fixed when DeepSeek had it's 15 minutes a couple months ago.