mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 01:15:26 +08:00
[Bugfix] Consistent ascii handling in tool parsers (#18883)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
parent
3de3eadf5b
commit
77164dad5e
@ -988,7 +988,8 @@ class OpenAIServingChat(OpenAIServing):
|
|||||||
tool_calls=[
|
tool_calls=[
|
||||||
tool_call_class(function=FunctionCall(
|
tool_call_class(function=FunctionCall(
|
||||||
name=tool_call.name,
|
name=tool_call.name,
|
||||||
arguments=json.dumps(tool_call.parameters)))
|
arguments=json.dumps(tool_call.parameters,
|
||||||
|
ensure_ascii=False)))
|
||||||
for tool_call in tool_calls
|
for tool_call in tool_calls
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user