How I stopped fighting with AI APIs and built a clean integration layer

· Dev.to