feat(tool_call): changed return type of tool_call
Update the tool call response format so that all non-first chunks in a tool call have type: null.
This commit is contained in:
@@ -1359,7 +1359,8 @@ class OpenAIServingChat(OpenAIServingBase):
|
|||||||
arguments=call_item.parameters,
|
arguments=call_item.parameters,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if tool_call_id is None:
|
||||||
|
tool_call.type = None
|
||||||
choice_data = ChatCompletionResponseStreamChoice(
|
choice_data = ChatCompletionResponseStreamChoice(
|
||||||
index=index,
|
index=index,
|
||||||
delta=DeltaMessage(tool_calls=[tool_call]),
|
delta=DeltaMessage(tool_calls=[tool_call]),
|
||||||
|
|||||||
Reference in New Issue
Block a user