Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] Fix tool call finish reason in streaming case #9209

Merged
merged 7 commits into from
Oct 12, 2024
Prev Previous commit
Next Next commit
fix editing mistake
Signed-off-by: Max de Bayser <mbayser@br.ibm.com>
  • Loading branch information
maxdebayser committed Oct 10, 2024
commit a2e141e167d5f7416a46fcfc0612b9e2e340a0d1
1 change: 0 additions & 1 deletion vllm/entrypoints/openai/serving_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ async def chat_completion_stream_generator(
tool_parser.prev_tool_call_arr) > 0
index = len(tool_parser.prev_tool_call_arr
) - 1 if tools_called else 0
tools_called = index > 0
else:
index = 0
tools_called = tool_choice_function_name is not None
Expand Down
Loading