21 lines
512 B
Plaintext
21 lines
512 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.transport.request({
|
|
method: "PUT",
|
|
path: "/_inference/completion/azure_openai_completion",
|
|
body: {
|
|
service: "azureopenai",
|
|
service_settings: {
|
|
api_key: "<api_key>",
|
|
resource_name: "<resource_name>",
|
|
deployment_id: "<deployment_id>",
|
|
api_version: "2024-02-01",
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|