From 9b3e05e9a51263c6d7f36304424849fca7d0d54e Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 22 Aug 2024 13:17:00 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6f28f92e..915d4d5c 100755 --- a/README.md +++ b/README.md @@ -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, @@ -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, @@ -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, @@ -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, }); ``` @@ -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, }); ``` @@ -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, @@ -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, @@ -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,