Javascript
import PiClient from 'withpi'; const client = new PiClient({ apiKey: 'My API Key', }); const response = await client.data.generateInputResponsePairs.streamData('job_id'); console.log(response);
[ { "llm_input": "<string>", "llm_output": "<string>" } ]
Streams data from the Generation Input-Response Pairs job
Streaming SDKExample objects from the job
The response is of type object[].
object[]