File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -456,14 +456,14 @@ import com.openlayer.api.core.JsonValue;
456456import com.openlayer.api.models.inferencepipelines.data.DataStreamParams ;
457457
458458DataStreamParams params = DataStreamParams . builder()
459- .config(DataStreamParams . Config . LlmData . builder()
460- .addInputVariableName(" user_query" )
461- .outputColumnName(" output" )
462- .numOfTokenColumnName(" tokens" )
463- .costColumnName(" cost" )
464- .timestampColumnName(" timestamp" )
459+ .config(JsonValue . from(42 ))
460+ .addRow(DataStreamParams . Row . builder()
461+ .putAdditionalProperty(" user_query" , JsonValue . from(" what is the meaning of life?" ))
462+ .putAdditionalProperty(" output" , JsonValue . from(" 42" ))
463+ .putAdditionalProperty(" tokens" , JsonValue . from(7 ))
464+ .putAdditionalProperty(" cost" , JsonValue . from(0.02 ))
465+ .putAdditionalProperty(" timestamp" , JsonValue . from(1610000000 ))
465466 .build())
466- .rows(JsonValue . from(42 ))
467467 .build();
468468```
469469
You can’t perform that action at this time.
0 commit comments