chat model send message can carry Summary of the historical message record?
Description of the new feature / enhancement
the dialogue mode, each time a message is sent, the historical message summary needs to be compressed and carried when the upper and lower limits of the large model window are about to be reached, so that the dialogue can be carried out for a long time.
Scenario when this would be used?
The current implementation is to carry the history every time, but because there is no summary compression, resulting in not many rounds to reach the context window limit of the large model, can not continue. Therefore, it is necessary to compress the summary of the history message when the upper and lower limit is reached so that the conversation can be held for a long time.
Supporting information
Close due to it's no longer active, if you have any questions, you can reopen it.