21 lines
519 B
Plaintext
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);
|
|
----
|