AI Chat

Summarize the chat's older messages now. The full transcript stays on screen; only what the model is sent on later turns shrinks.

Changed on
post/ai/conversations/{public_id}/compact

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/conversations/{public_id}/compact
  • Auth: HTTP bearer

Path parameters

public_idstring required

Conversation public id

Response

Compaction finished, or there was nothing to compact

compactedboolean required

Whether older messages were folded into the summary by this request.

folded_messagesinteger required

Messages folded into the summary by this request.

kept_messagesinteger required

Messages the model still sees word for word after the summary.

modelstring nullable

The model that wrote the summary, when one did.

reasonstring nullable

Why nothing was compacted, when compacted is false.

Changes