Skip to content

Prompt.augmentSystemMessage will result in adding two system prompts. #3266

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
leooolee opened this issue May 21, 2025 · 1 comment
Open

Comments

@leooolee
Copy link

Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:

Bug description
A clear and concise description of what the bug is about.

Image

Environment
Please provide as many details as possible: Spring AI version, Java version, which vector store you use if any, etc
JDK21 + Spring ai 1.0.0

Steps to reproduce
Steps to reproduce the issue.

  1. There is a system prompt, and the system prompt is not the first message.
  2. Augment the system message

Expected behavior
A clear and concise description of what you expected to happen.
Add only one system prompt.

@sunyuhan1998
Copy link
Contributor

I have reproduced your issue, and it is indeed as you described. I have submitted a PR to fix this issue: #3268

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

No branches or pull requests

2 participants