MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / json_array_size

Function json_array_size

server/src/server/http_server.cpp:377–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static size_t json_array_size(const json & value) {
378 return value.is_array() ? value.size() : 0;
379}
380
381int resolve_max_output_tokens(const json & body, int default_max_tokens) {
382 if (body.contains("max_tokens")) {

Callers 2

route_requestMethod · 0.85
worker_loopMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected