]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : (docs) added response format for /apply-template [no ci] (#11503)
authorIsaac McFadyen <redacted>
Thu, 30 Jan 2025 09:11:53 +0000 (04:11 -0500)
committerGitHub <redacted>
Thu, 30 Jan 2025 09:11:53 +0000 (10:11 +0100)
examples/server/README.md

index d1c9be589e56f76a0f31365d42c9da65bcb1e7b7..44da503dfd2e80b1c478f741d064b0bf2fad9577 100644 (file)
@@ -584,6 +584,10 @@ Uses the server's prompt template formatting functionality to convert chat messa
 
 `messages`: (Required) Chat turns in the same format as `/v1/chat/completions`.
 
+**Response format**
+
+Returns a JSON object with a field `prompt` containing a string of the input messages formatted according to the model's chat template format.
+
 ### POST `/embedding`: Generate embedding of a given text
 
 > [!IMPORTANT]