@@ -37,7 +37,7 @@ async function main() {
37
37
},
38
38
rows: [
39
39
{
40
- user_query: ' what is the meaning of life?' ,
40
+ user_query: " what's the meaning of life?" ,
41
41
output: ' 42' ,
42
42
tokens: 7 ,
43
43
cost: 0.02 ,
@@ -75,7 +75,7 @@ async function main() {
75
75
},
76
76
rows: [
77
77
{
78
- user_query: " what's the meaning of life?" ,
78
+ user_query: ' what is the meaning of life?' ,
79
79
output: ' 42' ,
80
80
tokens: 7 ,
81
81
cost: 0.02 ,
@@ -112,7 +112,7 @@ async function main() {
112
112
},
113
113
rows: [
114
114
{
115
- user_query: " what's the meaning of life?" ,
115
+ user_query: ' what is the meaning of life?' ,
116
116
output: ' 42' ,
117
117
tokens: 7 ,
118
118
cost: 0.02 ,
@@ -163,7 +163,7 @@ const client = new Openlayer({
163
163
});
164
164
165
165
// Or, configure per-request:
166
- 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: 1610000000 }] }, {
166
+ 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: 1610000000 }] }, {
167
167
maxRetries: 5 ,
168
168
});
169
169
```
@@ -180,7 +180,7 @@ const client = new Openlayer({
180
180
});
181
181
182
182
// Override per-request:
183
- 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: 1610000000 }] }, {
183
+ 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: 1610000000 }] }, {
184
184
timeout: 5 * 1000 ,
185
185
});
186
186
```
@@ -212,7 +212,7 @@ const response = await client.inferencePipelines.data
212
212
},
213
213
rows: [
214
214
{
215
- user_query: " what's the meaning of life?" ,
215
+ user_query: ' what is the meaning of life?' ,
216
216
output: ' 42' ,
217
217
tokens: 7 ,
218
218
cost: 0.02 ,
@@ -235,7 +235,7 @@ const { data: response, response: raw } = await client.inferencePipelines.data
235
235
},
236
236
rows: [
237
237
{
238
- user_query: " what's the meaning of life?" ,
238
+ user_query: ' what is the meaning of life?' ,
239
239
output: ' 42' ,
240
240
tokens: 7 ,
241
241
cost: 0.02 ,
@@ -361,7 +361,7 @@ await client.inferencePipelines.data.stream(
361
361
},
362
362
rows: [
363
363
{
364
- user_query: " what's the meaning of life?" ,
364
+ user_query: ' what is the meaning of life?' ,
365
365
output: ' 42' ,
366
366
tokens: 7 ,
367
367
cost: 0.02 ,
0 commit comments