Skip to content

fix(session): remove interrupted message in user's dialog history#218

Open
doraemon-hub-art wants to merge 1 commit into
lessweb:mainfrom
doraemon-hub-art:fix/dialog-history
Open

fix(session): remove interrupted message in user's dialog history#218
doraemon-hub-art wants to merge 1 commit into
lessweb:mainfrom
doraemon-hub-art:fix/dialog-history

Conversation

@doraemon-hub-art

Copy link
Copy Markdown

问题描述

当输入Ctrl + C 或者 Esc 打断对话后,终端打印的提示信息 “Interrupted.”,是通过 buildUserMessage 构造消息,会污染用户输入历史。

用户再通过方向键调整,想修改上一次的输入,就会需要多一次的向上操作。

改动点

改为 buildSystemMessage 构造一条不影响的 system 消息。

版本

0.1.33

效果

图片

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant