From c59c17e3967dcff6a8c6b4c48e2b2a9bff0c188c Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Fri, 30 Aug 2024 09:04:18 -0700 Subject: [PATCH] push locally stored change + rm log --- web/src/app/admin/embeddings/RerankingFormPage.tsx | 12 ++++++++---- web/src/app/admin/embeddings/interfaces.ts | 2 +- .../admin/embeddings/pages/EmbeddingFormPage.tsx | 8 ++++---- web/src/components/admin/connectors/Field.tsx | 13 ++++++++++++- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/web/src/app/admin/embeddings/RerankingFormPage.tsx b/web/src/app/admin/embeddings/RerankingFormPage.tsx index 8c02fe643eb..733c5ebd9af 100644 --- a/web/src/app/admin/embeddings/RerankingFormPage.tsx +++ b/web/src/app/admin/embeddings/RerankingFormPage.tsx @@ -192,15 +192,19 @@ const RerankingDetailsForm = forwardRef< >
) => { const value = e.target.value; - setRerankingDetails({ ...values, api_key: value }); - setFieldValue("api_key", value); + setRerankingDetails({ + ...values, + rerank_api_key: value, + }); + setFieldValue("rerank_api_key", value); + console.log("HIII"); }} type="password" label="Cohere API Key" - name="api_key" + name="rerank_api_key" />