Como instalar e configurar recursos de IA passo a passo

How do I install and use OpenAI instead of a self hosted AI?