Archived
server: /props keeps the model path to the operator
The llama-server compatibility payload carries model_path -- a path on this machine -- to whoever asked, keyless included. It travels the same class of information /v1/models already gates its `root` field with, and that gate exists: a stranger enumerating models should learn the model's name, not where its file lives. The field now answers for an api-keyed request or a local operator and comes back empty otherwise -- which is also what it already was for a --model stdin read, so no client finds the member missing, only the strangers learn nothing new.
This commit is contained in:
1 parent
d7e3c2a58a
commit
1b4e405969
2 files changed
+13
-4
No files matched your search
+1
-1
@@ -2534,7 +2534,7 @@ keys are refused on it, and so are the pixel bands.
|
||||
| `GET /health`, `/v1/health`, `/ping`, `POST /ping` | liveness; 503 with `"status": "stuck"` once the device has advanced nothing for a minute. A device stuck for `scheduler.stuck-exit` (60s; `0` never) ends the process (exit status 70, the queues it is stuck on in the log), so a restart policy brings the server back |
|
||||
| `GET /load` | current load |
|
||||
| `GET /version` | server version |
|
||||
| `GET /props` | llama-server's props: `n_ctx`, `total_slots`, `modalities`, `model_path`, the chat template and its capabilities, `bos_token`/`eos_token`, and the request defaults under llama-server's names |
|
||||
| `GET /props` | llama-server's props: `n_ctx`, `total_slots`, `modalities`, `model_path`, the chat template and its capabilities, `bos_token`/`eos_token`, and the request defaults under llama-server's names. Keyless, `model_path` and the template source answer the local operator only (§6.6); the capability flags stay open — clients build requests from them |
|
||||
| `POST /apply-template` | the prompt a chat request renders to, as llama-server returns it |
|
||||
| `POST /v1/chat/completions/input_tokens` | how many tokens that prompt is |
|
||||
| `GET /server_info` | the whole configuration of the running engine |
|
||||
|
||||
Reference in new issue
Block a user