Integrate LLM

This task is about integrating the LLM functionality with the API