File tree 1 file changed +7
-7
lines changed
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;
456
456
import com.openlayer.api.models.inferencepipelines.data.DataStreamParams ;
457
457
458
458
DataStreamParams 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 ))
465
466
.build())
466
- .rows(JsonValue . from(42 ))
467
467
.build();
468
468
```
469
469
You can’t perform that action at this time.
0 commit comments