mirror of
https://github.com/deepseek-ai/DeepSeek-V2.git
synced 2026-11-05 00:47:23 +00:00
[GH-ISSUE #2] Can not use tool and function-call? #1
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#1
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 @edisonzf2020 on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V2/issues/2
@chenkaiC4 commented on GitHub (May 10, 2024):
同样关注这个能力,是否有这部分能力的强化?对于企业应用,这块能力太重要了
@vicguo0724 commented on GitHub (May 10, 2024):
附议
@qizhanchan commented on GitHub (May 10, 2024):
Need function calling too.
@ftgreat commented on GitHub (May 14, 2024):
请问国内哪些模型这个能力比较强,谢谢
@luofuli commented on GitHub (May 14, 2024):
Up to your guys' demands.
Please vote here and tell us why you want API support for function calling.
@qizhanchan commented on GitHub (May 14, 2024):
To build agents with the ability of LLMs, such as Exec SQLs, Fetch data from API.
@qizhanchan commented on GitHub (May 14, 2024):
I found something interesting that DeepSeek has magic power to match function. Here's my prompt from langchain's idea
then you can ask it
Model will match 3 function calls and output the last answer directly coz no matched tool.
@qizhanchan commented on GitHub (May 14, 2024):
But the emulated system prompt takes no effects in the 2nd round user message contents, my solution is move the tool related content and append it to the user content.
@vicguo0724 commented on GitHub (May 14, 2024):
fastgpt构建agent
@NaMoCv commented on GitHub (May 18, 2024):
json_object应该比较好做,我觉得应该先支持。用户能少写点代码。
@yhyu13 commented on GitHub (Jun 1, 2024):
Not at all, need custom fine tuning.
Not even the deepseek-chat api has function calling abilities.
@dangnhdev commented on GitHub (Jun 28, 2024):
@dangnhdev commented on GitHub (Jun 30, 2024):
I've made a ChatGPT action which basically use this function calling feature to auto get latest code files on development and generate necessary changes based on my question. So no more copy paste.
@Zhenyi-Wang commented on GitHub (Jul 31, 2024):
工具调用可以扩展ai能力,比如网页搜索、页面读取、代码执行等,特别是现在超长上下文的情况下,可以极大扩展应用场景。
我试过使用类似FastGPT之类的框架(以prompt形式模拟function call),但代价是会对提示词和聊天历史造成混乱,算是堪堪够用。
虽然其他原生支持tools或者funtion的模型会好很多,但是性价比就……
@luochen1990 commented on GitHub (Jul 31, 2024):
不是说已经支持了么? 这个issue 是不是可以关了?
@luochen1990 commented on GitHub (Jul 31, 2024):
The current cloud-based DeepSeek already supports function calls, and I have tested that it is indeed functional. However, it seems that the version supporting function calls has not yet been open-sourced. I wonder if there are any plans for this?
@caomingpei commented on GitHub (Aug 1, 2024):
Until my post, I believe the deepseek didn't support the funciton call. I am working on extending the compatibility of an open-ai application. BUT when I use the deepseek api, I still get the following:
@luochen1990 commented on GitHub (Aug 1, 2024):
I'm using OpenAI API via Python SDK, and the function call works well.
@caomingpei commented on GitHub (Aug 1, 2024):
Yeah, you are right. There must be other reasons lead to my error.
https://platform.deepseek.com/api-docs/function_calling/
@gkm0120 commented on GitHub (Aug 8, 2024):
The official api supports function call, but does the open source DeepSeek-V2-Chat-0628 support function call, or when is it planned to support function call?
@EvoNexusX commented on GitHub (Aug 20, 2024):
官方api本身可以进行function calling, 但是似乎自己本地的模型在function calling时总是匹配不到
@sammcj commented on GitHub (Sep 4, 2024):
If you're using Ollama give this Modelfile a go, I've been using it for tool use with DSCv2lite:
@codefromthecrypt commented on GitHub (Sep 8, 2024):
@sammcj do you mind updating this for deepseek-v2? I switched the FROM and this ended up returning quoted json instead of what models like mistral
response from v1/chat/completions using this modelfile using deepseek-v2 (doesn't work):
response from v1/chat/completions using the same question with mistral-nemo (works)
@sammcj commented on GitHub (Sep 8, 2024):
You'll have to have a crack at it yourself, I'm not a maintainer for deepseek.
@mujiannan commented on GitHub (Sep 14, 2024):
目前
finish_reason也很不正常,DeepSeek在返回了tool_calls的情况下,finish_reason却是stop,按理说应该是tool_calls(至少OPENAI是这样返回的)。@ColorfulCoco commented on GitHub (Sep 27, 2024):
你好,请用工具调用的格式怎么写,这样可以吗
tools = [{
"type": "function",
"function": {
"name": "",
"parameters":
}
}]
tool_choice = {
"type": "",
"function": {
"name": ""
}
}
@cowcomic commented on GitHub (Nov 26, 2024):
我现在用langchain的agent请求deepseek的云端服务都不能正常使用tools
返回的格式langchain都无法解析
@duanhaowei commented on GitHub (Dec 4, 2024):
一样,我根本就无法触发,即使是content里命中了,都是普通对话格式。
@vincent-pli commented on GitHub (Jan 6, 2025):
What about v3, I test it with autogen 0.4, but the function call capability still not meet the requirement, anyone test on it?
@SavetheTears commented on GitHub (Jan 22, 2025):
i tested v3 api, the problem still exists. After tool call, the ToolMessage is not correctly interpreted to produce an AIMessage. Then in most cases, it goes into an infinite loop.
@ver007 commented on GitHub (Feb 11, 2025):
这是如何做到的?