Basic Request Example
{
"model": "gpt-4o",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the weather like today?"}
],
"stream": true,
"sessionId": "1234567890"
}
Response Format
{
"id": "1",
"type": "text",
"model": "gpt-4o",
"text": "Hello, this is a streaming response.",
"progress": "IN_PROGRESS",
"context": {
"conversationId": "1234567890",
"cursor": "abcdefg12345"
},
"metadata": {
"searchResults": {"results": ["result1", "result2"]},
"attachments": [
{"type": "image", "url": "http://example.com/image.jpg"}
]
}
}