Where i put this ? /** \Orhanerday\OpenAi\OpenAi $api */ $api = \XF::app()->container('chatGPT'); Nowhere. You are reading the developer guide