const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
scorers: [
{
name: '<string>',
type: 'exact_match',
reference_field: '<string>',
case_sensitive: true
}
],
dataset_id: '<string>',
generation_params: {max_tokens: 123, temperature: 123, top_p: 123, stop: ['<string>'], seed: 123}
})
};
fetch('https://api.veri.studio/v1/evals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));