Skip to content

Commit

Permalink
Revert "fix:deepseek tool call not working correctly" (#12463)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Jan 8, 2025
1 parent 05bda6f commit 6222179
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,7 @@ def _generate(
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
Expand Down

0 comments on commit 6222179

Please sign in to comment.