Skip to content

Commit 4d6dc7f

Browse files
feat(api): update via SDK Studio (#47)
1 parent e90ea76 commit 4d6dc7f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function main() {
3939
},
4040
rows: [
4141
{
42-
user_query: "what's the meaning of life?",
42+
user_query: 'what is the meaning of life?',
4343
output: '42',
4444
tokens: 7,
4545
cost: 0.02,
@@ -78,7 +78,7 @@ async function main() {
7878
},
7979
rows: [
8080
{
81-
user_query: "what's the meaning of life?",
81+
user_query: 'what is the meaning of life?',
8282
output: '42',
8383
tokens: 7,
8484
cost: 0.02,
@@ -115,7 +115,7 @@ async function main() {
115115
},
116116
rows: [
117117
{
118-
user_query: "what's the meaning of life?",
118+
user_query: 'what is the meaning of life?',
119119
output: '42',
120120
tokens: 7,
121121
cost: 0.02,
@@ -166,7 +166,7 @@ const client = new Openlayer({
166166
});
167167

168168
// 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 }] }, {
170170
maxRetries: 5,
171171
});
172172
```
@@ -183,7 +183,7 @@ const client = new Openlayer({
183183
});
184184

185185
// 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 }] }, {
187187
timeout: 5 * 1000,
188188
});
189189
```
@@ -215,7 +215,7 @@ const response = await client.inferencePipelines.data
215215
},
216216
rows: [
217217
{
218-
user_query: "what's the meaning of life?",
218+
user_query: 'what is the meaning of life?',
219219
output: '42',
220220
tokens: 7,
221221
cost: 0.02,
@@ -238,7 +238,7 @@ const { data: dataStreamResponse, response: raw } = await client.inferencePipeli
238238
},
239239
rows: [
240240
{
241-
user_query: "what's the meaning of life?",
241+
user_query: 'what is the meaning of life?',
242242
output: '42',
243243
tokens: 7,
244244
cost: 0.02,
@@ -364,7 +364,7 @@ await client.inferencePipelines.data.stream(
364364
},
365365
rows: [
366366
{
367-
user_query: "what's the meaning of life?",
367+
user_query: 'what is the meaning of life?',
368368
output: '42',
369369
tokens: 7,
370370
cost: 0.02,

0 commit comments

Comments
 (0)