Token Chunker
Splits text into chunks based on token count, ensuring each chunk stays within specified token limits.
Response
Successful Response: A list of Chunk objects.
Changes
Changed in 10 of the 20 revisions of this API.9619
- ○
added the optional property
items/contextto the response with the200statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api removed without deprecation
api-removed-without-deprecation
This revision also has 19 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
textrequest-property-removed
- ●
- ▲
removed the media type
application/jsonfrom the request bodyrequest-body-media-type-removed
- ○
added the media type
multipart/form-datato the request bodyrequest-body-media-type-added
- ▲
- ▲
request property
return_typewas restricted to a list of enum valuesrequest-property-became-enum
- ○
added the new
chunksenum value to the request propertyreturn_typerequest-property-enum-value-added
- ○
added the new
textsenum value to the request propertyreturn_typerequest-property-enum-value-added
- ▲
- ○
the request property
chunk_overlapbecame optionalrequest-property-became-optional
- ○
the request property
chunk_sizebecame optionalrequest-property-became-optional
- ○
the request property
return_typebecame optionalrequest-property-became-optional
- ○
the request property
tokenizerbecame optionalrequest-property-became-optional
- ○
- ▲
the response property
items/end_indexbecame optional for the status200response-property-became-optional
- ▲
the response property
items/start_indexbecame optional for the status200response-property-became-optional
- ▲
the response property
items/textbecame optional for the status200response-property-became-optional
- ▲
the response property
items/token_countbecame optional for the status200response-property-became-optional
- ●
removed the request property
argsrequest-property-removed
- ○
added the new required request property
chunk_overlapwith a default valuenew-required-request-property-with-default
- ○
added the new required request property
chunk_sizewith a default valuenew-required-request-property-with-default
- ○
added the new required request property
return_typewith a default valuenew-required-request-property-with-default
- ○
added the new required request property
tokenizerwith a default valuenew-required-request-property-with-default
- ▲
- ○
removed the non-success response with the status
401response-non-success-status-removed
- ○
removed the non-success response with the status
422response-non-success-status-removed
- ○
removed the non-success response with the status
500response-non-success-status-removed
- ○
- ▲
added the new required request property
argsnew-required-request-property
- ▲
the response's body type/format changed from
/toarray/for status200response-body-type-changed
- ●
removed the request property
chunk_overlaprequest-property-removed
- ●
removed the request property
chunk_sizerequest-property-removed
- ●
removed the request property
return_typerequest-property-removed
- ●
removed the request property
tokenizerrequest-property-removed
- ○
removed
ErrorRESsubschema #1subschema #2subschema #3subschema #4from the response bodyanyOflist for the response status200response-body-any-of-removed
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ▲