fixed typo
This commit is contained in:
@@ -41,7 +41,7 @@ async function createEpisode(sessionId, userMessage, aiResponse, tokenCount) {
|
||||
}
|
||||
|
||||
async function getEpisodeById(episodeId) {
|
||||
const res = await (`${BASE_URL}/episodes/${episodeId}`);
|
||||
const res = await fetch(`${BASE_URL}/episodes/${episodeId}`);
|
||||
if (res.status === 404) return null;
|
||||
if (!res.ok) throw new Error(`Failed to fetch episode: ${res.status}`);
|
||||
return res.json();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const {getEnv, QDRANT, COLLECTIONS } = require('@nexusai/shared')
|
||||
|
||||
const BASE_URL = getEnv('QDrant_URL', QDRANT.DEFAULT_URL);
|
||||
const BASE_URL = getEnv('QDRANT_URL', QDRANT.DEFAULT_URL);
|
||||
|
||||
async function searchEpisodes( vector, {limit = 5, scoreThreshold = 0.75, sessionId } = {}) {
|
||||
const body = {vector, limit, score_threshold: scoreThreshold, with_payload: true};
|
||||
|
||||
BIN
packages/project.zip
Normal file
BIN
packages/project.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user