Files
elasticsearch-js/docs/doc_examples/59d736a4d064ed2013c7ead8e32e0998.asciidoc
2024-07-29 17:10:05 -05:00

19 lines
421 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/openai-completion",
body: {
service: "openai",
service_settings: {
api_key: "<api_key>",
model_id: "gpt-3.5-turbo",
},
},
});
console.log(response);
----