feat: 知识库对外api

This commit is contained in:
archer
2023-04-08 20:27:43 +08:00
parent 9a145f223f
commit 52d00d0562
7 changed files with 230 additions and 17 deletions

View File

@@ -126,7 +126,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
// 获取提示词的向量
const { vector: promptVector } = await openaiCreateEmbedding({
isPay: true,
apiKey: apiKey,
apiKey,
userId,
text: prompt.value
});