Archived
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:
1 parent
7d840861af
commit
7fd2cd7fa6
5 files changed
+89
No files matched your search
@@ -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); });
|
||||
|
||||
Reference in new issue
Block a user