From b89286a4810beb3d064c5ae066cf88dfbac85194 Mon Sep 17 00:00:00 2001 From: Isaac McFadyen Date: Wed, 29 Jan 2025 18:50:40 -0500 Subject: [PATCH] server: added response format for /apply-template to README.md --- examples/server/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/server/README.md b/examples/server/README.md index cedae0b6d..4d97ffc0a 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]