delta → sources (when returnSources=true) → done (carries response) → [DONE]; on failure an error event is sent. When stream=false, JSON is returned.curl --location 'https://vipapi.aboai.ai/v1/knowledge/chat' \
--header 'Authorization: Bearer {{apiKey}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "Claude-Haiku-5.5",
"kid": "NkD5Y4RkLGnp",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "hi"
}
]
}
],
"maxTokens": 4096,
"topK": 10,
"hybridAlpha": 0.55,
"returnSources": false,
"stream": true
}'{
"id": "resp_abc123",
"provider": "openai",
"model": "gpt-4o",
"content": "According to the product manual, returns are accepted within 7 days of receipt for any reason, provided the item and packaging are intact.",
"thinking": "Thinking process",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{\"city\":\"Shanghai\",\"unit\":\"celsius\"}"
}
}
],
"finish_reason": "stop",
"usage": {
"input_tokens": 1250,
"output_tokens": 85,
"cached_input_tokens": 0,
"reasoning_tokens": 0
},
"raw_usage": {
"prompt_tokens": 1250,
"completion_tokens": 85,
"total_tokens": 1335
}
}