resp = client.inference.inference( task_type="completion", inference_id="openai_chat_completions", body={"input": "What is Elastic?"}, ) print(resp)