mirror of
https://github.com/deepseek-ai/DeepSeek-V2.git
synced 2026-11-05 00:47:23 +00:00
[GH-ISSUE #84] 线上api如何稳定的触发 tool_calls #81
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-V2#81
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 @wssnail on GitHub (Aug 26, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V2/issues/84
写了一个tool_calls,用来创建SQL的,但是在提问题的时候需要写到上特殊的标记,比如:
promt: 创建会员表 call executeSql 或者 创建会员表 tool_calls
用上述的提示词,第一次还能稳定生成
但是当message携带的内容多了之后,上述提示词就不起作用了,如下
上述在“创建会员表 tool_calls”这里的时候,还可以稳定的输出
但是在“创建老师表 tool_calls”的时候就无法输出tool_calls了,这个功能在GPT-4o上很稳定,这个能修复吗?或者添加一个指令,确保能稳定输出tool_calls,不然稳定性太差,线上的api都无法满足企业化需求
@mujiannan commented on GitHub (Sep 14, 2024):
遇到了同样问题,
DeepSeek调用工具的欲望非常低,即便在提示词中明确要求尽可能调用工具获取详细信息后再回答,它依然懒洋洋的。@luochen1990 commented on GitHub (Oct 9, 2024):
2.5 之前没这个问题的,升到2.5 之后就这样了,而且有时候强制指定 tool_choice 到特定 function name 都不管用
@ITMeow commented on GitHub (Oct 22, 2024):
可能是和他低价缓存的机制有关,会优先返回之前提问的内容,坐等修复,期待期待
@luochen1990 commented on GitHub (Oct 22, 2024):
你说的是这个 么? 这个缓存的是 input, 不会缓存 output,所以理论上应该与这个无关
@Yc-runrun commented on GitHub (Jun 25, 2025):
这个问题解决了么,最近还是遇到这个问题