Trim one payload to what a query needs (trim-1)
Compression of one payload: trim-1 keeps the lines of input the query needs, verbatim, and leaves out the rest under markers. Not compaction: it never reads a conversation. The answer is the output and token counts only. Metered per call and per token against the organization's monthly trim allowance.
post/v1/trim
Request
- Base URLhttps://gateway.caveman.so
- URLhttps://gateway.caveman.so/v1/trim
- AuthAPI key in header x-cave-api-key
Headers
x-cave-retention'metadata' | 'zdr'
metadata or zdr narrows the project's retention for this call: the model runs in memory, nothing is stored and no recovery handle is returned. A call never widens the project's retention.
Request body
Response
The trimmed payload
Changes
No recorded changes to this operation across all 1 revision of this API.