This commit is contained in:
archer
2023-08-25 15:45:24 +08:00
parent 6d93059e25
commit 4b088e84c7
6 changed files with 30 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
return getVector({
userId,
input: [q],
model: kb.model
model: kb.vectorModel
});
}
return { vectors: [[]] };

View File

@@ -2,7 +2,7 @@ import type { NextApiRequest, NextApiResponse } from 'next';
import { jsonRes } from '@/service/response';
import { connectToDatabase, KB } from '@/service/mongo';
import { authUser } from '@/service/utils/auth';
import type { KbUpdateParams } from '@/api/plugins/kb';
import type { KbUpdateParams } from '@/api/request/kb';
export default async function handler(req: NextApiRequest, res: NextApiResponse<any>) {
try {