Added/updated snippets for docs (#2318)
This commit is contained in:
21
docs/doc_examples/82844ef45e11c0eece100d3109db3182.asciidoc
Normal file
21
docs/doc_examples/82844ef45e11c0eece100d3109db3182.asciidoc
Normal file
@ -0,0 +1,21 @@
|
||||
// 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/amazon_bedrock_completion",
|
||||
body: {
|
||||
service: "amazonbedrock",
|
||||
service_settings: {
|
||||
access_key: "<aws_access_key>",
|
||||
secret_key: "<aws_secret_key>",
|
||||
region: "us-east-1",
|
||||
provider: "amazontitan",
|
||||
model: "amazon.titan-text-premier-v1:0",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user