]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server: add get_info tool (#26522)
authorXuan-Son Nguyen <redacted>
Mon, 3 Aug 2026 16:51:02 +0000 (18:51 +0200)
committerGitHub <redacted>
Mon, 3 Aug 2026 16:51:02 +0000 (18:51 +0200)
commit99111b19ce482f081e92ec6c6cdbe6a4c815c515
tree61053958ec905317d45aca57f08bcf5efc7f9933
parente8e06f78e253a98a739b8ae4c6b661b357249ce4
server: add get_info tool (#26522)

* server: add get_info tool

* fix --rpc in docs

* server: harden get_info probe result handling

Report the OS as unknown when the probe process fails to spawn or times
out, so the diagnostic text from run() is never returned as an OS name.
Strip the probe output on both ends, which also drops the blank line
that ver prints before the version on Windows. Name the output and
timeout limits, and report an unreadable working directory as unknown
instead of an empty string.

* server: simplify get_info result handling

Drop the named limits and the working directory error branch, keeping
the probe result handling to a single expression.

---------

Co-authored-by: Pascal <redacted>
common/arg.cpp
common/common.h
examples/gen-docs/gen-docs.cpp
tools/server/README.md
tools/server/server-tools.cpp