From 91a688ee7fe9168a0f0eee038af7001c8f5b94df Mon Sep 17 00:00:00 2001 From: Juha Jeronen Date: Wed, 24 Jan 2024 16:02:51 +0200 Subject: [PATCH] oops, bug --- src/endpoints/vectors.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/endpoints/vectors.js b/src/endpoints/vectors.js index 0ed3676a8..6dd5e46b3 100644 --- a/src/endpoints/vectors.js +++ b/src/endpoints/vectors.js @@ -149,6 +149,8 @@ async function queryCollection(collectionId, source, sourceSettings, searchText, * @returns {object} - An object that can be used as `sourceSettings` in functions that take that parameter. */ function extractSourceSettings(request) { + const source = String(req.body.source) || 'transformers'; + // Extras API settings to connect to the Extras embeddings provider let extrasUrl = ''; let extrasKey = '';