Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/f57ce7de0946e9416ddb9150e95f4b74.asciidoc
Normal file
20
docs/doc_examples/f57ce7de0946e9416ddb9150e95f4b74.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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);
|
||||
----
|
||||
Reference in New Issue
Block a user