mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 02:58:59 +08:00
Revert "fix:deepseek tool call not working correctly" (#12463)
This commit is contained in:
parent
05bda6f38d
commit
6222179a57
@ -377,10 +377,7 @@ class OAIAPICompatLargeLanguageModel(_CommonOaiApiCompat, LargeLanguageModel):
|
||||
for tool in tools:
|
||||
formatted_tools.append(helper.dump_model(PromptMessageFunction(function=tool)))
|
||||
|
||||
if prompt_messages[-1].role.value == "tool":
|
||||
data["tools"] = None
|
||||
else:
|
||||
data["tools"] = formatted_tools
|
||||
data["tools"] = formatted_tools
|
||||
|
||||
if stop:
|
||||
data["stop"] = stop
|
||||
|
Loading…
x
Reference in New Issue
Block a user