Hi, I have an exception ""ABCMeta object got multiple values for keyword argument 'callback_manager'"" when trying to pass the callback_manager:
query_engine = index.as_chat_engine(chat_mode='condense_plus_context',
similarity_top_k=similarity_top_k,
llm=llm_engine,
system_prompt=prepared_system_prompt,
callback_manager=callback_manager)
I was trying to pass it to the llm_engine but the problem was when it passed to different functions the counter didn't update. For example:
llm_engine = OpenAI(temperature=0, model=model_name, api_key=openai_key, max_tokens=response_limit, callback_manager=callback_manager)
response = llm.predict(prompt) # Count A
...
query_engine = index.as_chat_engine(chat_mode='condense_plus_context',
similarity_top_k=similarity_top_k,
llm=llm_engine,
system_prompt=prepared_system_prompt)
response = query_engine.chat(query_text, chat_history=chat_history) # <=== Counter didn't update and still have value A