22 lines
461 B
Plaintext
22 lines
461 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.ml.inferTrainedModel({
|
|
model_id: "model2",
|
|
docs: [
|
|
{
|
|
text_field: "This is a very happy person",
|
|
},
|
|
],
|
|
inference_config: {
|
|
zero_shot_classification: {
|
|
labels: ["glad", "sad", "bad", "rad"],
|
|
multi_label: false,
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|