fixed typo

This commit is contained in:
Storme-bit
2026-04-05 22:45:01 -07:00
parent 8ee9438b1c
commit 3b5f0afece
3 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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

Binary file not shown.