[BugFix] Omit empty tool_calls from OpenAI chat responses (#44105)
Signed-off-by: QwertyJack <7554089+QwertyJack@users.noreply.github.com> Signed-off-by: Chauncey <chaunceyjiang@gmail.com> Co-authored-by: QwertyJack <7554089+QwertyJack@users.noreply.github.com> Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
This commit is contained in:
co-authored by
QwertyJack
Chauncey
parent
3ce5823762
commit
6c427dd401
@@ -465,7 +465,7 @@ class TestGPTOSSChat:
|
||||
)
|
||||
|
||||
msg = tool_choice_none.choices[0].message
|
||||
assert len(msg.tool_calls) == 0
|
||||
assert msg.tool_calls is None
|
||||
|
||||
|
||||
class TestGPTOSSSpeculativeChat:
|
||||
|
||||
Reference in New Issue
Block a user