I understand, but yet, I couldn’t replicate that.
2024-10-31 16:14:55.979856 start
2024-10-31 16:14:58.277495 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role='assistant', tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.293140 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=0, id='call_lq1yuLiItpY7XBZTaLJv0me1', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.315287 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments='{"pa', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.330954 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments='ram1"', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.346580 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments=': "tes', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.362204 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=0, id=None, function=ChoiceDeltaToolCallFunction(arguments='t1"}', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.393452 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=1, id='call_mHRyMCdOyogD1m5COZO5FLYA', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.415566 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=1, id=None, function=ChoiceDeltaToolCallFunction(arguments='{"pa', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.431235 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=1, id=None, function=ChoiceDeltaToolCallFunction(arguments='ram1"', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.446857 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=1, id=None, function=ChoiceDeltaToolCallFunction(arguments=': "tes', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.462445 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=1, id=None, function=ChoiceDeltaToolCallFunction(arguments='t2"}', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.478070 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=2, id='call_w5HjitBkV7CIHCxdI8ZUkUNN', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.509356 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=2, id=None, function=ChoiceDeltaToolCallFunction(arguments='{"pa', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.515897 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=2, id=None, function=ChoiceDeltaToolCallFunction(arguments='ram1"', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.547189 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=2, id=None, function=ChoiceDeltaToolCallFunction(arguments=': "tes', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.562816 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=2, id=None, function=ChoiceDeltaToolCallFunction(arguments='t3"}', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.578424 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=3, id='call_menoLRSRMevO9rfqzokNvzSi', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.594064 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=3, id=None, function=ChoiceDeltaToolCallFunction(arguments='{"pa', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.616176 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=3, id=None, function=ChoiceDeltaToolCallFunction(arguments='ram1"', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.631845 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=3, id=None, function=ChoiceDeltaToolCallFunction(arguments=': "tes', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.663094 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=3, id=None, function=ChoiceDeltaToolCallFunction(arguments='t4"}', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.678707 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=4, id='call_otMWKISXZ1bS1K9nw5txyADE', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.694328 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=4, id=None, function=ChoiceDeltaToolCallFunction(arguments='{"pa', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.716474 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=4, id=None, function=ChoiceDeltaToolCallFunction(arguments='ram1"', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.732126 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=4, id=None, function=ChoiceDeltaToolCallFunction(arguments=': "tes', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.747765 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=4, id=None, function=ChoiceDeltaToolCallFunction(arguments='t5"}', name=None), type=None)]), finish_reason=None, index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.763388 ChatCompletionChunk(id='chatcmpl-xyz', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, refusal=None, role=None, tool_calls=None), finish_reason='tool_calls', index=0, logprobs=None)], created=1730416496, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 16:14:58.779002 end
Solace: Half a second of not seeing a tool call isn’t really important when you have to receive it all to act anyway.
Python 3.11, and this post’s “pip”, will bring you to the latest release module versions indicated by openai
. Then it is down to the platforms.