OpenAI python module: using Azure and OpenAI at the same time

Hi,

Currently some properties likes api_type, api_base, api_key, etc. are set at module level which makes it harder to use both Azure and OpenAI at the same time from same python program.

Ideally it should all be implemented as a class so multiple instances could be instated with different api_key, etc. (or other method).