From: Isaac McFadyen Date: Thu, 30 Jan 2025 09:11:53 +0000 (-0500) Subject: server : (docs) added response format for /apply-template [no ci] (#11503) X-Git-Tag: upstream/0.0.4631~39 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=496e5bf46bab757d05e18227cb4e17055ae42f42;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : (docs) added response format for /apply-template [no ci] (#11503) --- diff --git a/examples/server/README.md b/examples/server/README.md index d1c9be58..44da503d 100644 --- a/examples/server/README.md +++ b/examples/server/README.md @@ -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]