瀏覽代碼

fix: fixed the issue of error reporting when saving chat configuration #965 (#984)

### What problem does this PR solve?

fix: fixed the issue of error reporting when saving chat configuration
#965

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.7.0
balibabu 1 年之前
父節點
當前提交
c62834f870
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      web/src/pages/chat/chat-configuration-modal/index.tsx

+ 2
- 1
web/src/pages/chat/chat-configuration-modal/index.tsx 查看文件

@@ -145,7 +145,8 @@ const ChatConfigurationModal = ({
settledModelVariableMap[ModelVariableType.Precise],
icon: fileList,
llm_id: initialDialog.llm_id ?? modelId,
vector_similarity_weight: 1 - initialDialog.vector_similarity_weight,
vector_similarity_weight:
1 - (initialDialog.vector_similarity_weight ?? 0.3),
});
}
}, [initialDialog, form, visible, modelId]);

Loading…
取消
儲存