21 lines
511 B
Plaintext
21 lines
511 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_ai_studio_embeddings",
|
|
inference_config: {
|
|
service: "azureaistudio",
|
|
service_settings: {
|
|
api_key: "<api_key>",
|
|
target: "<target_uri>",
|
|
provider: "<provider>",
|
|
endpoint_type: "<endpoint_type>",
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|