Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function main() {
},
rows: [
{
user_query: "what's the meaning of life?",
user_query: 'what is the meaning of life?',
output: '42',
tokens: 7,
cost: 0.02,
Expand Down Expand Up @@ -78,7 +78,7 @@ async function main() {
},
rows: [
{
user_query: "what's the meaning of life?",
user_query: 'what is the meaning of life?',
output: '42',
tokens: 7,
cost: 0.02,
Expand Down Expand Up @@ -115,7 +115,7 @@ async function main() {
},
rows: [
{
user_query: "what's the meaning of life?",
user_query: 'what is the meaning of life?',
output: '42',
tokens: 7,
cost: 0.02,
Expand Down Expand Up @@ -166,7 +166,7 @@ const client = new Openlayer({
});

// Or, configure per-request:
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 }] }, {
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 }] }, {
maxRetries: 5,
});
```
Expand All @@ -183,7 +183,7 @@ const client = new Openlayer({
});

// Override per-request:
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 }] }, {
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 }] }, {
timeout: 5 * 1000,
});
```
Expand Down Expand Up @@ -215,7 +215,7 @@ const response = await client.inferencePipelines.data
},
rows: [
{
user_query: "what's the meaning of life?",
user_query: 'what is the meaning of life?',
output: '42',
tokens: 7,
cost: 0.02,
Expand All @@ -238,7 +238,7 @@ const { data: dataStreamResponse, response: raw } = await client.inferencePipeli
},
rows: [
{
user_query: "what's the meaning of life?",
user_query: 'what is the meaning of life?',
output: '42',
tokens: 7,
cost: 0.02,
Expand Down Expand Up @@ -364,7 +364,7 @@ await client.inferencePipelines.data.stream(
},
rows: [
{
user_query: "what's the meaning of life?",
user_query: 'what is the meaning of life?',
output: '42',
tokens: 7,
cost: 0.02,
Expand Down