Skip to content

Commit 8edb19d

Browse files
fix(docs): use correct putAdditionalProperty value (#33)
1 parent d81fedc commit 8edb19d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ Sometimes, the API may support other properties that are not yet supported in th
104104
you can attach them using the `putAdditionalProperty` method.
105105

106106
```java
107+
import com.openlayer.api.models.core.JsonValue;
107108
InferencePipelineDataStreamParams params = InferencePipelineDataStreamParams.builder()
108109
// ... normal properties
109-
.putAdditionalProperty("secret_param", "4242")
110+
.putAdditionalProperty("secret_param", JsonValue.from("4242"))
110111
.build();
111112
```
112113

0 commit comments

Comments
 (0)