Initialized Chat with model: gpt-3.5-turbo
Making chat completions call.
[ChoiceDeltaToolCall(index=0, id='call_HNux2G4SUDnSuyLiv0OWQyjx', function=ChoiceDeltaToolCallFunction(arguments='', name='get_current_weather'), type='function')]
[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments='{\n', name=None), type=None)]
[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments=' ', name=None), type=None)]
[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments=' "', name=None), type=None)]
[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments='location', name=None), type=None)]
This means with multiple tool calls grouping is weird, unless I just segment by the order the chunks arrive and count the chunk with the name and ID as the start of a new call.