返回 CodeWhale
openai_chat_parallel_tool_calls.sse
根目录 / crates / tui / tests / fixtures / conformance / sse / openai_chat_parallel_tool_calls.sse
1 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[{"index":0,"delta":{"role":"assistant","content":null},"finish_reason":null}]}
2
3 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_paris","type":"function","function":{"name":"get_weather","arguments":""}}]},"finish_reason":null}]}
4
5 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"city\":"}}]},"finish_reason":null}]}
6
7 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"Paris\"}"}}]},"finish_reason":null}]}
8
9 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_oslo","type":"function","function":{"name":"get_weather","arguments":"{\"city\":\"Oslo\"}"}}]},"finish_reason":null}]}
10
11 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}]}
12
13 data: {"id":"chatcmpl-conf","object":"chat.completion.chunk","created":1760000000,"model":"gpt-4.1","choices":[],"usage":{"prompt_tokens":57,"completion_tokens":31,"total_tokens":88,"prompt_tokens_details":{"cached_tokens":32}}}
14
15 data: [DONE]
16
17
17 lines Plain Text