Skip to content

Commit 9ca21ee

Browse files
authored
Clarify the request.parameters() return type (triton-inference-server#228)
1 parent be51138 commit 9ca21ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,9 @@ models
565565

566566
You can retrieve the parameters associated with an inference request
567567
using the `inference_request.parameters()` function. This function
568-
returns a JSON object where the keys are the keys of the parameters
569-
object and the values are the values for the parameters field.
568+
returns a JSON string where the keys are the keys of the parameters
569+
object and the values are the values for the parameters field. Note that
570+
you need to parse this string using `json.loads` to convert it to a dictionary.
570571

571572
You can read more about the inference request parameters in the [parameters
572573
extension](https://github.com/triton-inference-server/server/blob/main/docs/protocol/extension_parameters.md)

0 commit comments

Comments
 (0)