Unfortunately, this function cannot be controlled via API so you need to disable live chat on YouTube directly.
- go to Live Control Room via the button beside the video preview in the stream settings
- confirm first settings if it is required
- click "Edit" and disable live chat - see the screen below