// 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: "chat_completion",
  inference_id: "chat-completion-endpoint",
  inference_config: {
    service: "elastic",
    service_settings: {
      model_id: "model-1",
    },
  },
});
console.log(response);
----
