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

21 lines
519 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: "azure_openai_embeddings",
inference_config: {
service: "azureopenai",
service_settings: {
api_key: "<api_key>",
resource_name: "<resource_name>",
deployment_id: "<deployment_id>",
api_version: "2024-02-01",
},
},
});
console.log(response);
----