When making a streaming call with tools, the entire message ques, and is then returned all at once.
For example given this code:
import datetime
from openai import OpenAI
# Initialize OpenAI client
client = OpenAI()
print(datetime.datetime.now(), "start")
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "system", "content": "call the fake_tool five times with different parameters"}],
tools=[
{
"type": "function",
"function": {
"name": "fake_tool",
"description": "A fake tool for testing purposes.",
"parameters": {
"type": "object",
"properties": {
"param1": {
"type": "string",
"description": "A fake parameter."
}
},
"required": ["param1"],
"additionalProperties": False
},
"strict": True
}
}
],
tool_choice="required",
stream=True,
temperature=0.0
)
for chunk in response:
print(datetime.datetime.now(), chunk)
print(datetime.datetime.now(), "end")
The expectation is chunks will start showing up after ~500ms and come in every ~25ms. Instead they show up all at once after ~3s. In other words, it’s not actually streaming
2024-10-31 22:58:05.848397 start
2024-10-31 22:58:08.012473 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role='assistant', tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.015622 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=0, id='call_Gejo56IH11JWe2gxEbEEaS4i', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.015965 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.016268 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.016565 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.016872 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.017161 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=1, id='call_TgEeqWKMZJDBfpgcNWcmSGdL', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.017452 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.017752 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.018032 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.018311 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.018825 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=2, id='call_GK7d6ILGxfUFkJam3Z5gXFCS', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.019126 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.019459 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.019802 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.020091 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.020378 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=3, id='call_NVIElny7etmsZn0iLdZMoDwF', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.020681 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.020968 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.021252 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.021535 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.021835 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=[ChoiceDeltaToolCall(index=4, id='call_S0GTFCNNcardvxWgJg5XFbh0', function=ChoiceDeltaToolCallFunction(arguments='', name='fake_tool'), type='function')]), finish_reason=None, index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.022117 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.022394 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.022692 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.022975 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=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=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.023645 ChatCompletionChunk(id='chatcmpl-AOYP84xNJx6UN7Zb3RuXY3kqtV27g', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=None), finish_reason='tool_calls', index=0, logprobs=None)], created=1730415486, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_159d8341cc', usage=None)
2024-10-31 22:58:08.023963 end
If I remove the tool call everything works as expected
Example code
import datetime
from openai import OpenAI
# Initialize OpenAI client
client = OpenAI()
print(datetime.datetime.now(), "start")
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "system", "content": "write a short story 20 words"}],
stream=True,
temperature=0.0
)
for chunk in response:
print(datetime.datetime.now(), chunk)
print(datetime.datetime.now(), "end")
And the streaming output
2024-10-31 23:09:15.337921 start
2024-10-31 23:09:15.761900 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content='', function_call=None, role='assistant', tool_calls=None, refusal=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.781246 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content='In', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.781533 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' the', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.799272 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' quiet', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.799556 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' forest', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.834239 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=',', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.834515 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' a', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.836006 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' lost', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.836290 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' kitten', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.842158 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' found', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.842424 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' a', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.886468 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' glowing', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.886783 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' mushroom', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.887965 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content='.', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.888234 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' It', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.895099 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' touched', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.895366 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' it', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.903020 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=',', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.903289 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' transforming', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.920959 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' into', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.921228 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' a', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.935233 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' majestic', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.935529 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=',', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.955541 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' wise', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.955835 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=' cat', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.956084 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content='.', function_call=None, role=None, tool_calls=None), finish_reason=None, index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.956861 ChatCompletionChunk(id='chatcmpl-AOYZvcVM11oiYfrCW1L7nIlcQR5FF', choices=[Choice(delta=ChoiceDelta(content=None, function_call=None, role=None, tool_calls=None), finish_reason='stop', index=0, logprobs=None)], created=1730416155, model='gpt-4o-2024-08-06', object='chat.completion.chunk', service_tier=None, system_fingerprint='fp_45cf54deae', usage=None)
2024-10-31 23:09:15.960319 end