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 3b430a5 commit 79ce1c1Copy full SHA for 79ce1c1
spring-ai-core/src/main/java/org/springframework/ai/chat/prompt/Prompt.java
@@ -112,7 +112,7 @@ public int hashCode() {
112
}
113
114
public Prompt copy() {
115
- return new Prompt(instructionsCopy(), this.chatOptions);
+ return new Prompt(instructionsCopy(), null == this.chatOptions ? null : this.chatOptions.copy());
116
117
118
private List<Message> instructionsCopy() {
0 commit comments