fix: prompt deep copy
This commit is contained in:
committed by
Ilayaperumal Gopinathan
parent
3b430a5bee
commit
79ce1c1193
@@ -112,7 +112,7 @@ public class Prompt implements ModelRequest<List<Message>> {
|
||||
}
|
||||
|
||||
public Prompt copy() {
|
||||
return new Prompt(instructionsCopy(), this.chatOptions);
|
||||
return new Prompt(instructionsCopy(), null == this.chatOptions ? null : this.chatOptions.copy());
|
||||
}
|
||||
|
||||
private List<Message> instructionsCopy() {
|
||||
|
||||
Reference in New Issue
Block a user