Poll chat stream result
const url = 'https://example.com/v1/adapters/llm/chat/stream/example?parts_behavior=on_finish_get_all';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/adapters/llm/chat/stream/example?parts_behavior=on_finish_get_all' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Chat stream id.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Stream completed and fully read
object
object
Deprecated: use tool_calls instead.
object
JSON-encoded argument string.
object
The function name and JSON-encoded arguments carried by a tool call.
object
Example
{ "status": "in_progress"}Stream in progress or finished but not fully read
object
object
Deprecated: use tool_calls instead.
object
JSON-encoded argument string.
object
The function name and JSON-encoded arguments carried by a tool call.
object
Example
{ "status": "in_progress"}Invalid request body or parameters
Canonical structured error emitted by the chat completion, chat stream and
embeddings handlers (the shared errorResponse helper). code is an
application error code (0 when unset); status mirrors the HTTP status.
object
Examplegenerated
{ "name": "example", "message": "example", "code": 1, "status": 1}Unauthorized
Forbidden
Resource does not exist
Canonical structured error emitted by the chat completion, chat stream and
embeddings handlers (the shared errorResponse helper). code is an
application error code (0 when unset); status mirrors the HTTP status.
object
Examplegenerated
{ "name": "example", "message": "example", "code": 1, "status": 1}Internal server error
Canonical structured error emitted by the chat completion, chat stream and
embeddings handlers (the shared errorResponse helper). code is an
application error code (0 when unset); status mirrors the HTTP status.
object
Examplegenerated
{ "name": "example", "message": "example", "code": 1, "status": 1}Bad gateway (upstream adapter error)