Skip to content

Fixed a bug in the augmentSystemMessage method of the Prompt. #3268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sunyuhan1998
Copy link
Contributor

As mentioned in issue: #3266, when executing the augmentSystemMessage method of the Prompt, an extra system message would be incorrectly added if the system message was not the first one in the message list. This PR fixes that issue.

…where an extra system message was incorrectly added when the system message was not the first one in the message list.

Signed-off-by: Sun Yuhan <1085481446@qq.com>
@sunyuhan1998
Copy link
Contributor Author

Hi @ThomasVitale , what do you think? Is this a bug?

…where an extra system message was incorrectly added when the system message was not the first one in the message list.

Signed-off-by: Sun Yuhan <1085481446@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants