Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

fix/LLM-Modal-chunk-size-issue (#237)

Athulcef6fcac9759
diff --git a/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx b/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx
index ff6539f09..50f31f20b 100644
--- a/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx
+++ b/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx
@@ -355,7 +355,10 @@ function AddLlmProfile({
}
const requestOptions = {
method: "GET",
- url: `/api/v1/unstract/mock_org/adapter/` + value,
+ url: `/api/v1/unstract/${sessionDetails?.orgId}/adapter/${value}/`,
+ headers: {
+ "X-CSRFToken": sessionDetails?.csrfToken,
+ },
};
axiosPrivate(requestOptions)
@@ -370,7 +373,7 @@ function AddLlmProfile({
setAlertDetails(
handleException(
err,
- "Failed to get the dropdown list for LLM Adaptors"
+ "Failed to get chunk size information for the requested LLM. Please proceed with a sane default."
)
);
});