serve: /props answers what llama-server clients read

Front-ends built against llama-server size their context from /props'
default_generation_settings.n_ctx, decide whether to offer images from modalities, and read the
defaults a request inherits; on Radiance that route was a 404. Answer it with what this server
can fill honestly, under llama-server's names: n_ctx (the context one request may use, left out
when unknown), total_slots, modalities, the sampler defaults and build_info. No chat template
text or GGUF metadata -- the server has neither.
This commit is contained in:
baKon committed 2026-10-07 17:27:29 -05:00
1 parent 7d840861af
commit 7fd2cd7fa6
5 files changed
+89

No files matched your search

+1
View File
@@ -139,6 +139,7 @@ void Server::register_routes() {
router_.get ("/load", [this](const HttpRequest& q) { return handle_load(q); });
router_.get ("/version", [this](const HttpRequest& q) { return handle_version(q); });
router_.get ("/server_info", [this](const HttpRequest& q) { return handle_server_info(q); });
router_.get ("/props", [this](const HttpRequest& q) { return handle_props(q); });
router_.post("/tokenize", [this](const HttpRequest& q) { return handle_tokenize(q); });
router_.post("/detokenize", [this](const HttpRequest& q) { return handle_detokenize(q); });