The community member is encountering an AttributeError related to the callbacks attribute in their custom LLM class. They have provided the full code for their CustomLLM and CustomServiceContext classes. A comment from another community member suggests that the code is a little outdated and provides a link to the up-to-date guide for using a custom LLM in the GPT-Index library.
class CustomLLM(LLM): def init(self): # Set the model name model_name = "google/flan-t5-large" # Set the callbacks attribute to an empty list or None callbacks = []