Revert "fix:deepseek tool call not working correctly" (#12463)
This commit is contained in:
@@ -377,9 +377,6 @@ class OAIAPICompatLargeLanguageModel(_CommonOaiApiCompat, LargeLanguageModel):
|
|||||||
for tool in tools:
|
for tool in tools:
|
||||||
formatted_tools.append(helper.dump_model(PromptMessageFunction(function=tool)))
|
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:
|
if stop:
|
||||||
|
Reference in New Issue
Block a user