Create Completion
Changed onGenerate a text completion. Set stream: true for SSE streaming.
All SSE frames use event: stream_event with a JSON-serialized lithos StreamEvent payload, discriminated by type: started, content_block_start, text_delta, reasoning_delta, tool_call_delta, content_block_end, usage, rate_limits, ended, and error.
Request
- The document declares no server URL.
- Auth
- HTTP bearer
- or API key in cookie __fabro_session
Request body
Response
Completion result (JSON when stream=false, SSE when stream=true)
Example response
{
"model": {
"provider": "anthropic"
}
}Changes
- info
added the optional property
//to the response with the status
- info
- breaking
the
/response's property format changed fromint64touint64for status - breaking
the
/response's property format changed fromint64touint64for status - breaking
the
/response's property format changed fromint64touint64for status - breaking
the
/response's property format changed fromint64touint64for status - breaking
the
/response's property format changed fromint64touint64for status - breaking
the
/response's property format changed fromint64touint64for status
- breaking