mirror of
https://github.com/vllm-project/vllm.git
synced 2025-11-11 16:50:52 +08:00
[BugFix] enable DOTALL to match multi-line tool_call parameters in extract_tool_call_required_streaming (#24668)
Signed-off-by: Shijun Yin <shijun.yin@outlook.com>
This commit is contained in:
@ -418,7 +418,7 @@ class OpenAIServingChat(OpenAIServing):
|
||||
if not function_name_returned:
|
||||
# get partly generated arguments from the latest tool call
|
||||
param_match = re.search(r'.*"parameters":\s*(.*)',
|
||||
current_text)
|
||||
current_text, re.DOTALL)
|
||||
arguments = param_match.group(1) if param_match else ""
|
||||
arguments, _ = OpenAIServingChat._filter_delta_text(
|
||||
arguments, previous_text)
|
||||
|
||||
Reference in New Issue
Block a user