Files
elasticsearch-js/docs/doc_examples/82844ef45e11c0eece100d3109db3182.asciidoc
2024-09-03 09:36:52 -05:00

22 lines
559 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: "completion",
inference_id: "amazon_bedrock_completion",
inference_config: {
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);
----