The message_dict was updated to exclude the message id key, which was found to be unnecessary. This change addressed an issue that arose when passing id from AIMessage resulting in HTTPError: 400 Client Error: Bad request: json: unknown field "id" for url: Response text: {"error_code": "BAD_REQUEST", "message": "Bad request: json: unknown field \"id\"\n"}.
The error described above was encountered while passing the chat history as a dictionary to the LLM, which is utilized for context-aware conversation.
The message_dict was updated to exclude the message id key, which was found to be unnecessary. This change addressed an issue that arose when passing id from AIMessage resulting in
HTTPError: 400 Client Error: Bad request: json: unknown field "id" for url: Response text: {"error_code": "BAD_REQUEST", "message": "Bad request: json: unknown field \"id\"\n"}.
The error described above was encountered while passing the chat history as a dictionary to the LLM, which is utilized for context-aware conversation.