Skip to content

Commit f2934c6

Browse files
isaac-mcfadyenmglambda
authored andcommitted
server: added more docs for response_fields field (ggml-org#10995)
1 parent ca53987 commit f2934c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ These words will not be included in the completion, so make sure to add them to
450450

451451
`post_sampling_probs`: Returns the probabilities of top `n_probs` tokens after applying sampling chain.
452452

453-
`response_fields`: A list of response fields, for example: `"response_fields": ["content", "generation_settings/n_predict"]`. If the specified field is missing, it will simply be omitted from the response without triggering an error.
453+
`response_fields`: A list of response fields, for example: `"response_fields": ["content", "generation_settings/n_predict"]`. If the specified field is missing, it will simply be omitted from the response without triggering an error. Note that fields with a slash will be unnested; for example, `generation_settings/n_predict` will move the field `n_predict` from the `generation_settings` object to the root of the response and give it a new name.
454454

455455
**Response format**
456456

0 commit comments

Comments
 (0)