Files
elasticsearch-js/docs/doc_examples/8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc
2024-09-03 09:36:52 -05:00

19 lines
424 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.inference.put({
task_type: "text_embedding",
inference_id: "mistral_embeddings",
inference_config: {
service: "mistral",
service_settings: {
api_key: "<api_key>",
model: "<model_id>",
},
},
});
console.log(response);
----