Expand description
Shared utilities for request/response processing.
Re-exported from vtcode_llm::utils to eliminate duplication.
Functionsยง
- estimate_
token_ count - Count the number of tokens in
textusing tiktoken BPE. - parse_
stream_ event_ openai_ format - Parse stream event from OpenAI-compatible format
- truncate_
to_ token_ limit - Truncate
textto at mostmax_tokenstokens.