[GH-ISSUE #2820] [Feature Request]: add missing llama.cpp server endpoints (/tokenize, /completion, /embedding, /metrics) #1134

Closed
opened 2026-11-04 01:48:47 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @jeremyoha450 on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2820

Posible to add more of the llama outputs, etc? (i've add some myself. but other might like them too)

Token and template routes

POST /tokenize is missing upstream. A local patch adds it, plus /v1/tokenize, with with_pieces.
POST /detokenize is missing upstream. A local patch adds it, plus /v1/detokenize.
POST /apply-template is missing upstream. A local patch adds it, plus /v1/apply-template, including response_format schema text and input_tokens.
There is no llama.cpp-compatible add_special / BOS handling on tokenize.
There is no /tokenize of a chat message list without a separate apply-template call.

Native generation

POST /completion is missing, including the native stream fields content, stop, stop_type, tokens_predicted, tokens_evaluated, tokens_cached, and generation_settings.
POST /completions is missing.
POST /infill is missing.
POST /v1/completions is missing (legacy non-chat completions).

Embeddings and adapters

POST /embedding is missing.
POST /embeddings is missing.
POST /v1/embeddings is missing.
GET /lora-adapters is missing.
POST /lora-adapters is missing.

Slots and metrics

POST /slots/{id}?action=erase is missing. Save and restore exist.
Prometheus text on GET /metrics is missing. Strata’s /metrics is a different JSON document.
The llama.cpp timings object is missing from chat chunks: prompt_ms, predicted_ms, prompt_per_token_ms, predicted_per_token_ms, prompt_per_second, predicted_per_second.
Originally created by @jeremyoha450 on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2820 Posible to add more of the llama outputs, etc? (i've add some myself. but other might like them too) Token and template routes POST /tokenize is missing upstream. A local patch adds it, plus /v1/tokenize, with with_pieces. POST /detokenize is missing upstream. A local patch adds it, plus /v1/detokenize. POST /apply-template is missing upstream. A local patch adds it, plus /v1/apply-template, including response_format schema text and input_tokens. There is no llama.cpp-compatible add_special / BOS handling on tokenize. There is no /tokenize of a chat message list without a separate apply-template call. Native generation POST /completion is missing, including the native stream fields content, stop, stop_type, tokens_predicted, tokens_evaluated, tokens_cached, and generation_settings. POST /completions is missing. POST /infill is missing. POST /v1/completions is missing (legacy non-chat completions). Embeddings and adapters POST /embedding is missing. POST /embeddings is missing. POST /v1/embeddings is missing. GET /lora-adapters is missing. POST /lora-adapters is missing. Slots and metrics POST /slots/{id}?action=erase is missing. Save and restore exist. Prometheus text on GET /metrics is missing. Strata’s /metrics is a different JSON document. The llama.cpp timings object is missing from chat chunks: prompt_ms, predicted_ms, prompt_per_token_ms, predicted_per_token_ms, prompt_per_second, predicted_per_second.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271284083 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1134
No description provided.