Replace Pairs
client.models.trainingImages.replacePairs(stringmodelID, TrainingImageReplacePairsParams { body } params, RequestOptionsoptions?): TrainingImageReplacePairsResponse { count, pairs }
PUT/models/{modelId}/training-images/pairs
Replace Pairs
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const response = await client.models.trainingImages.replacePairs('modelId', { body: [{}] });
console.log(response.count);{
"count": 0,
"pairs": [
{
"instruction": "instruction",
"sourceId": "sourceId",
"targetId": "targetId"
}
]
}Returns Examples
{
"count": 0,
"pairs": [
{
"instruction": "instruction",
"sourceId": "sourceId",
"targetId": "targetId"
}
]
}