Added support for 'response_format' API parameter