custom_chat_history
, hence the chat_history
variable in the chat_engine = CondenseQuestionChatEngine.from_defaults()
ask for a dictionnary.Exception has occurred: ValidationError 1 validation error for ChatMemoryBuffer chat_history -> 0 value is not a valid dict (type=type_error.dict) File "C:\Projets\IA Chat Local\Sources\AzureOpenAI2\testindex copy.py", line 113, in <module> chat_engine = CondenseQuestionChatEngine.from_defaults( pydantic.error_wrappers.ValidationError: 1 validation error for ChatMemoryBuffer chat_history -> 0 value is not a valid dict (type=type_error.dict)
custom_chat_history = [ {"role":"system","content":"THis is system msg"}, ]
class MessageRole(str, Enum): """Message role.""" SYSTEM = "system" USER = "user" ASSISTANT = "assistant" FUNCTION = "function"