We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35f46e9 commit 1344364Copy full SHA for 1344364
spring-ai-core/src/main/java/org/springframework/ai/chat/client/advisor/api/AdvisedRequest.java
@@ -153,7 +153,7 @@ public Prompt toPrompt() {
153
if (!CollectionUtils.isEmpty(this.systemParams())) {
154
processedSystemText = new PromptTemplate(processedSystemText, this.systemParams()).render();
155
}
156
- messages.add(new SystemMessage(processedSystemText));
+ messages.add(0,new SystemMessage(processedSystemText));
157
158
159
String formatParam = (String) this.adviseContext().get("formatParam");
0 commit comments