Files
elasticsearch-js/docs/doc_examples/f57ce7de0946e9416ddb9150e95f4b74.asciidoc
2024-09-03 09:36:33 -05:00

21 lines
515 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: "completion",
inference_id: "azure_openai_completion",
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);
----