Skip to content

server: Expose media_marker on /props endpoint.#22028

Merged
ngxson merged 2 commits into
ggml-org:masterfrom
cetarthoriphros:expose-media-tag
Apr 18, 2026
Merged

server: Expose media_marker on /props endpoint.#22028
ngxson merged 2 commits into
ggml-org:masterfrom
cetarthoriphros:expose-media-tag

Conversation

@cetarthoriphros
Copy link
Copy Markdown
Contributor

Overview

Expose the media_marker on the /props endpoint.

Additional information

For clients using the /completion endpoint, it's useful to have a way to fetch the current media_marker for inline image embedding. Right now, as far as I know, it can only be extracted by sending a dummy request to the /apply-template endpoint and parsing it from the result, which is overly complicated, or launching llama-server with LLAMA_MEDIA_MARKER defined to the marker, which may be inaccessible to clients not sharing the same environment.

Requirements

@ngxson ngxson requested a review from ServeurpersoCom April 17, 2026 08:34
@ngxson
Copy link
Copy Markdown
Contributor

ngxson commented Apr 18, 2026

CC @ggml-org/maintainers if someone can give an approval

@ngxson ngxson merged commit 9e5647a into ggml-org:master Apr 18, 2026
50 of 51 checks passed
samuraieng pushed a commit to samuraieng/llama.cpp that referenced this pull request Apr 19, 2026
@cetarthoriphros cetarthoriphros deleted the expose-media-tag branch April 20, 2026 17:54
ArberSephirotheca pushed a commit to ArberSephirotheca/llama.cpp that referenced this pull request Apr 21, 2026
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Apr 23, 2026
rsenthilkumar6 pushed a commit to rsenthilkumar6/llama.cpp that referenced this pull request May 1, 2026
jimbothigpen pushed a commit to jimbothigpen/frankenturbo2 that referenced this pull request May 2, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants