Auto-generated code for main (#2357)

This commit is contained in:
Elastic Machine
2024-09-03 15:36:33 +01:00
committed by GitHub
parent 9e08aaebe2
commit 132d6d6062
82 changed files with 797 additions and 418 deletions

View File

@ -3,12 +3,10 @@
[source, js]
----
const response = await client.transport.request({
method: "POST",
path: "/_inference/completion/openai_chat_completions",
body: {
input: "What is Elastic?",
},
const response = await client.inference.inference({
task_type: "completion",
inference_id: "openai_chat_completions",
input: "What is Elastic?",
});
console.log(response);
----