@ -356,6 +356,14 @@ public class TongYiChatModel extends
mergedTongYiParams.setTopK(scaChatParams.getTopK());
}
if (scaChatParams.getRepetitionPenalty() != null) {
mergedTongYiParams.setRepetitionPenalty(scaChatParams.getRepetitionPenalty());
if (scaChatParams.getIncrementalOutput() != null) {
mergedTongYiParams.setIncrementalOutput(scaChatParams.getIncrementalOutput());
return mergedTongYiParams;
@ -459,6 +459,11 @@ public class TongYiChatOptions implements FunctionCallingOptions, ChatOptions {
return this;
public Builder withIncrementalOutput(Boolean isIncrementalOutput) {
this.options.incrementalOutput = isIncrementalOutput;
public TongYiChatOptions build() {
return this.options;