未验证 提交 2254cd9a 编写于 作者: 小傅哥 提交者: GitHub

feat: 新旧模型校验 !Model.isOldModel(this.model)

上级 51d691db
......@@ -253,7 +253,7 @@ public class ChatCompletionRequest {
public String toString() {
try {
// 24年1月发布新模型后调整
if (Model.GLM_3_5_TURBO.equals(this.model) || Model.GLM_4.equals(this.model) || Model.GLM_4V.equals(this.model)) {
if (!Model.isOldModel(this.model)) {
Map<String, Object> paramsMap = new HashMap<>();
paramsMap.put("model", this.model.getCode());
if (null == this.messages && null == this.prompt) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册