@@ -39,7 +39,7 @@ async function main() {
39
39
},
40
40
rows: [
41
41
{
42
- user_query: " what's the meaning of life?" ,
42
+ user_query: ' what is the meaning of life?' ,
43
43
output: ' 42' ,
44
44
tokens: 7 ,
45
45
cost: 0.02 ,
@@ -78,7 +78,7 @@ async function main() {
78
78
},
79
79
rows: [
80
80
{
81
- user_query: " what's the meaning of life?" ,
81
+ user_query: ' what is the meaning of life?' ,
82
82
output: ' 42' ,
83
83
tokens: 7 ,
84
84
cost: 0.02 ,
@@ -115,7 +115,7 @@ async function main() {
115
115
},
116
116
rows: [
117
117
{
118
- user_query: " what's the meaning of life?" ,
118
+ user_query: ' what is the meaning of life?' ,
119
119
output: ' 42' ,
120
120
tokens: 7 ,
121
121
cost: 0.02 ,
@@ -166,7 +166,7 @@ const client = new Openlayer({
166
166
});
167
167
168
168
// Or, configure per-request:
169
- await client .inferencePipelines .data .stream (' 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' , { config: { inputVariableNames: [' user_query' ], outputColumnName: ' output' , numOfTokenColumnName: ' tokens' , costColumnName: ' cost' , timestampColumnName: ' timestamp' }, rows: [{ user_query: ' what\' s the meaning of life?' , output: ' 42' , tokens: 7 , cost: 0.02 , timestamp: 1620000000 }] }, {
169
+ await client .inferencePipelines .data .stream (' 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' , { config: { inputVariableNames: [' user_query' ], outputColumnName: ' output' , numOfTokenColumnName: ' tokens' , costColumnName: ' cost' , timestampColumnName: ' timestamp' }, rows: [{ user_query: ' what is the meaning of life?' , output: ' 42' , tokens: 7 , cost: 0.02 , timestamp: 1620000000 }] }, {
170
170
maxRetries: 5 ,
171
171
});
172
172
```
@@ -183,7 +183,7 @@ const client = new Openlayer({
183
183
});
184
184
185
185
// Override per-request:
186
- await client .inferencePipelines .data .stream (' 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' , { config: { inputVariableNames: [' user_query' ], outputColumnName: ' output' , numOfTokenColumnName: ' tokens' , costColumnName: ' cost' , timestampColumnName: ' timestamp' }, rows: [{ user_query: ' what\' s the meaning of life?' , output: ' 42' , tokens: 7 , cost: 0.02 , timestamp: 1620000000 }] }, {
186
+ await client .inferencePipelines .data .stream (' 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' , { config: { inputVariableNames: [' user_query' ], outputColumnName: ' output' , numOfTokenColumnName: ' tokens' , costColumnName: ' cost' , timestampColumnName: ' timestamp' }, rows: [{ user_query: ' what is the meaning of life?' , output: ' 42' , tokens: 7 , cost: 0.02 , timestamp: 1620000000 }] }, {
187
187
timeout: 5 * 1000 ,
188
188
});
189
189
```
@@ -215,7 +215,7 @@ const response = await client.inferencePipelines.data
215
215
},
216
216
rows: [
217
217
{
218
- user_query: " what's the meaning of life?" ,
218
+ user_query: ' what is the meaning of life?' ,
219
219
output: ' 42' ,
220
220
tokens: 7 ,
221
221
cost: 0.02 ,
@@ -238,7 +238,7 @@ const { data: dataStreamResponse, response: raw } = await client.inferencePipeli
238
238
},
239
239
rows: [
240
240
{
241
- user_query: " what's the meaning of life?" ,
241
+ user_query: ' what is the meaning of life?' ,
242
242
output: ' 42' ,
243
243
tokens: 7 ,
244
244
cost: 0.02 ,
@@ -364,7 +364,7 @@ await client.inferencePipelines.data.stream(
364
364
},
365
365
rows: [
366
366
{
367
- user_query: " what's the meaning of life?" ,
367
+ user_query: ' what is the meaning of life?' ,
368
368
output: ' 42' ,
369
369
tokens: 7 ,
370
370
cost: 0.02 ,
0 commit comments