Hi, after upgrading LlamaIndex and moving from LangChain ChatOpenAI to LlamaIndex OpenAI, suddenly ChatGPT stopped understanding simple sentenses like "Hi". Instead of responsing with greeting, it doesn't know what to say: "I'm sorry but I don't have the information on this question. I will pass the problem to my human colleagues who will be able to assist you further." The model is gpt-3.5 LlamaIndex 0.8.65
Here is the code:
llm_engine = OpenAI(temperature=0, model_name=model_name, openai_api_key=openai_key, max_tokens=response_limit)
llm_predictor = LLMPredictor(llm=llm_engine)
service_context = ServiceContext.from_defaults(llm_predictor=llm_predictor, chunk_size=chunk_size,
callback_manager=callback_manager)
vector_store = storage_service.get_vector_store(collection_name, project.db_name)
index = VectorStoreIndex.from_vector_store(vector_store, service_context)
chatmemory = ChatMemoryBuffer.from_defaults(token_limit=history_limit)
query_engine = index.as_chat_engine(verbose=True,chat_mode="context",
memory=chatmemory,
similarity_top_k=similarity_top_k,
system_prompt=prepared_system_prompt,
node_postprocessors=[CustomPostprocessor(context_limit, query_text + prepared_system_prompt)])
response = query_engine.chat(query_text, chat_history=chat_history)
openai.log = 'debug' is not working for some reason, so I even can't see wha't is bein passed to the OpenAI
Update. I found that, for some reason, LlamaIndex is passing only one ChatMessage, system even though I provided the query and full chat history.