Chunking

Code Chunk

Code chunking endpoint.

Chunks code using AST-based parsing for various programming languages.

post/v1/chunk/code

Headers

authorizationstring nullable

Request body

ocrstring

OCR provider (mistral or gemini)

tokenizerstring

Tokenizer to use

chunk_sizeinteger

Size of each chunk

languagestring

Programming language (auto-detect if 'auto')

include_nodesboolean

Include AST nodes in output

Response

Successful Response

{"stackTrail":"paths:/v1/chunk/code:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.