mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
4.8-alpha fix (#1424)
This commit is contained in:
@@ -85,8 +85,7 @@ export async function searchDatasetData(props: SearchDatasetDataProps) {
|
||||
teamId,
|
||||
datasetIds,
|
||||
vectors,
|
||||
limit,
|
||||
efSearch: global.systemEnv?.pgHNSWEfSearch
|
||||
limit
|
||||
});
|
||||
|
||||
// get q and a
|
||||
|
@@ -127,8 +127,8 @@ const completions = async ({
|
||||
});
|
||||
const answer = data.choices?.[0].message?.content || '';
|
||||
|
||||
console.log(JSON.stringify(chats2GPTMessages({ messages, reserveId: false }), null, 2));
|
||||
console.log(answer, '----');
|
||||
// console.log(JSON.stringify(chats2GPTMessages({ messages, reserveId: false }), null, 2));
|
||||
// console.log(answer, '----');
|
||||
|
||||
const id =
|
||||
agents.find((item) => answer.includes(item.key))?.key ||
|
||||
|
Reference in New Issue
Block a user