]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cli : move to HTTP-based implementation (#24948)
authorXuan-Son Nguyen <redacted>
Wed, 8 Jul 2026 12:52:43 +0000 (14:52 +0200)
committerGitHub <redacted>
Wed, 8 Jul 2026 12:52:43 +0000 (14:52 +0200)
commitc264f65ff9d8f592a590e3221f712a8883b7dd81
tree00de4ed958eb25116eda29386fb000234214b401
parent07e012afdcac1007efff83704a8e95dad5b14c70
cli : move to HTTP-based implementation (#24948)

* cli: move to HTTP-based implementation

* wip

* working

* remote server ok

* cli support router mode

Co-authored-by: Piotr Wilkin <redacted>
* case: router with only one model

* Apply suggestions from code review

Co-authored-by: Piotr Wilkin (ilintar) <redacted>
* remove outdated comment

* use destructor instead

* add ftype

* cli-view --> cli-ui

* pimpl

* no more json in header

* nits fixes

* also show model aliases

---------

Co-authored-by: Piotr Wilkin <redacted>
Co-authored-by: Piotr Wilkin (ilintar) <redacted>
14 files changed:
common/arg.cpp
common/common.h
common/http.h
tools/cli/CMakeLists.txt
tools/cli/cli-client.cpp [new file with mode: 0644]
tools/cli/cli-client.h [new file with mode: 0644]
tools/cli/cli-context.cpp [new file with mode: 0644]
tools/cli/cli-context.h [new file with mode: 0644]
tools/cli/cli-server.h [new file with mode: 0644]
tools/cli/cli-ui.h [new file with mode: 0644]
tools/cli/cli.cpp
tools/server/server-context.cpp
tools/server/server-models.cpp
tools/server/server.cpp