Skip to content

Commit 6f4c840

Browse files
author
kevin
committed
fix ConversationParam.java
1 parent 45b4000 commit 6f4c840

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/java/com/alibaba/dashscope/aigc/conversation/ConversationParam.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,14 @@ public Map<String, Object> getParameters() {
177177
} else if (stopTokens != null && !stopTokens.isEmpty()) {
178178
params.put(STOP, stopTokens);
179179
}
180-
params.putAll(parameters);
180+
if (parameters != null) {
181+
parameters.forEach(
182+
(k, v) -> {
183+
if (v != null) {
184+
params.put(k, v);
185+
}
186+
});
187+
}
181188
return params;
182189
}
183190

0 commit comments

Comments
 (0)