Skip to content

Commit 10daed2

Browse files
committed
Minor update
1 parent 1e82822 commit 10daed2

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

packages/components/nodes/vectorstores/Teradata/Teradata.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class Teradata_VectorStores implements INode {
458458
};
459459
}
460460

461-
const sessionUrl = baseURL + (baseURL.endsWith('/') ? '' : '/') + 'session';
461+
const sessionUrl = baseURL + (baseURL.endsWith('/') ? '' : '/') + 'data-insights/api/v1/session';
462462
const response = await fetch(sessionUrl, {
463463
method: 'POST',
464464
headers: authHeaders,
@@ -527,7 +527,7 @@ class Teradata_VectorStores implements INode {
527527
formData.append('vs_parameters', JSON.stringify(vsParameters));
528528
formData.append('vs_index', JSON.stringify(vsIndex));
529529

530-
const vectorstoresUrl = baseURL + (baseURL.endsWith('/') ? '' : '/') + 'vectorstores/' + vectorStoreName;
530+
const vectorstoresUrl = baseURL + (baseURL.endsWith('/') ? '' : '/') + 'data-insights/api/v1/vectorstores/' + vectorStoreName;
531531

532532
// Prepare headers for vectorstores API call
533533
let vectorstoreHeaders: Record<string, string> = {};
@@ -667,7 +667,7 @@ class Teradata_VectorStores implements INode {
667667
database_name: database,
668668
}
669669

670-
const sessionUrl = baseURL + (baseURL.endsWith('/') ? '' : '/') + 'session'
670+
const sessionUrl = baseURL + (baseURL.endsWith('/') ? '' : '/') + 'data-insights/api/v1/session'
671671
const sessionResponse = await fetch(sessionUrl, {
672672
method: 'POST',
673673
headers: authHeaders,
@@ -720,7 +720,7 @@ class Teradata_VectorStores implements INode {
720720
};
721721
}
722722

723-
const searchUrl = `${baseURL}${baseURL.endsWith('/') ? '' : '/'}vectorstores/${vectorStoreName}/similarity-search?log_level=${log_level}`
723+
const searchUrl = `${baseURL}${baseURL.endsWith('/') ? '' : '/'}data-insights/api/v1/vectorstores/${vectorStoreName}/similarity-search?log_level=${log_level}`
724724
const searchResponse = await fetch(searchUrl, {
725725
method: 'POST',
726726
headers: searchHeaders,
-1.05 KB
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)