瀏覽代碼

server : (docs) added response format for /apply-template [no ci] (#11503)

Isaac McFadyen 1 年之前
父節點
當前提交
496e5bf46b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      examples/server/README.md

+ 4 - 0
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]