Skip to content

Commit 5915bbb

Browse files
stainless-app[bot]meorphis
authored andcommitted
feat(api): update via SDK Studio (#47)
1 parent fc02cc7 commit 5915bbb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main() {
3737
},
3838
rows: [
3939
{
40-
user_query: 'what is the meaning of life?',
40+
user_query: "what's the meaning of life?",
4141
output: '42',
4242
tokens: 7,
4343
cost: 0.02,
@@ -75,7 +75,7 @@ async function main() {
7575
},
7676
rows: [
7777
{
78-
user_query: "what's the meaning of life?",
78+
user_query: 'what is the meaning of life?',
7979
output: '42',
8080
tokens: 7,
8181
cost: 0.02,
@@ -112,7 +112,7 @@ async function main() {
112112
},
113113
rows: [
114114
{
115-
user_query: "what's the meaning of life?",
115+
user_query: 'what is the meaning of life?',
116116
output: '42',
117117
tokens: 7,
118118
cost: 0.02,
@@ -163,7 +163,7 @@ const client = new Openlayer({
163163
});
164164

165165
// 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 }] }, {
167167
maxRetries: 5,
168168
});
169169
```
@@ -180,7 +180,7 @@ const client = new Openlayer({
180180
});
181181

182182
// 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 }] }, {
184184
timeout: 5 * 1000,
185185
});
186186
```
@@ -212,7 +212,7 @@ const response = await client.inferencePipelines.data
212212
},
213213
rows: [
214214
{
215-
user_query: "what's the meaning of life?",
215+
user_query: 'what is the meaning of life?',
216216
output: '42',
217217
tokens: 7,
218218
cost: 0.02,
@@ -235,7 +235,7 @@ const { data: response, response: raw } = await client.inferencePipelines.data
235235
},
236236
rows: [
237237
{
238-
user_query: "what's the meaning of life?",
238+
user_query: 'what is the meaning of life?',
239239
output: '42',
240240
tokens: 7,
241241
cost: 0.02,
@@ -361,7 +361,7 @@ await client.inferencePipelines.data.stream(
361361
},
362362
rows: [
363363
{
364-
user_query: "what's the meaning of life?",
364+
user_query: 'what is the meaning of life?',
365365
output: '42',
366366
tokens: 7,
367367
cost: 0.02,

0 commit comments

Comments
 (0)