[GH-ISSUE #1626] [Feature Request]: more of the llama outputs, etc #654

Closed
opened 2026-11-04 01:44:49 +07:00 by bsakaguchi · 2 comments
Owner

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

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 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1626 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

@tajhlande commented on GitHub (Oct 12, 2026):

I'm specifically interested in a llama.cpp style timings object, or vllm-style request_prompt_tokens + request_prefill_time_seconds + request_time_per_output_token

<!-- gh-comment-id:6132960848 --> @tajhlande commented on GitHub (Oct 12, 2026): I'm specifically interested in a llama.cpp style `timings` object, or vllm-style `request_prompt_tokens` + `request_prefill_time_seconds` + `request_time_per_output_token`
Author
Owner

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

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156162486 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#654
No description provided.