Skip to content

添加滑动窗口 #5

@weizhenzhao

Description

@weizhenzhao

for i, (old_query, response) in enumerate(history):

大佬

冒昧问下,这里可不可以添加一个滑动窗口呀?
滑动最近3轮对话,这样会保证对话长度在一定的范围以内。

Thanks
weizhen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions