API formats
Lessons are inserted as one temporary user message at the end of the conversation (before a
trailing assistant prefill). System and developer instructions, tool calls and results, and
reasoning fields the provider needs back are left untouched. Requests in other formats are
still recorded, without lessons.
Providers and gateways
A captured request to any other host in a supported format also gets lessons; its
provider is taken from the model name when possible. Streamed reasoning is reassembled
into one field per message.
Configure gateways and self-hosted servers
SetSOVARA_HTTP_ENDPOINTS on the Sovara servers to a JSON list. The longest matching
url_prefix applies:
These settings apply only to requests the SDKs capture, which are matched by path (for
example
/v1/chat/completions or /api/chat). A gateway path the SDKs don’t capture is
not recorded.
Some vLLM chat templates require user and assistant messages to alternate and reject a
request with two user messages in a row. If lessons cause such errors, set
"lessons": false
for that endpoint.