ChatStreamingResponse - Python SDK

ChatStreamingResponse method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
datacomponents.ChatStreamChunk✔️Streaming chat completion chunk{"choices": [{"delta": {"content": "Hello","role": "assistant"},
“finish_reason”: null,
“index”: 0<br />}
],
“created”: 1677652288,
“id”: “chatcmpl-123”,
“model”: “openai/gpt-4”,
“object”: “chat.completion.chunk”
}