Revert "AI related changes"

This reverts commit 52199ed24614e815d07cd9d87e3f9ffeadc31765.