Expand description
Shared input validation, header utilities, and service-readiness helpers used by all handlers.
Structsยง
- XHeaders ๐
- A sorted map of
X-*HTTP request headers.
Constantsยง
- MAX_
STRING_ ๐CHARS - Maximum characters allowed per individual input string (SEC-3).
Functionsยง
- check_
ready ๐ - Checks whether the service is ready to handle embedding requests.
- collect_
x_ ๐headers - Collects all headers whose name starts with
x-(case-insensitive) into anXHeadersmap. - validate_
input ๐ - Validates a batch of input texts against size and length constraints.