mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
fix: milvus (#2968)
This commit is contained in:
@@ -24,7 +24,10 @@ export class MilvusCtrl {
|
|||||||
|
|
||||||
global.milvusClient = new MilvusClient({
|
global.milvusClient = new MilvusClient({
|
||||||
address: MILVUS_ADDRESS,
|
address: MILVUS_ADDRESS,
|
||||||
token: MILVUS_TOKEN
|
token: MILVUS_TOKEN,
|
||||||
|
loaderOptions: {
|
||||||
|
longs: Function
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
addLog.info(`Milvus connected`);
|
addLog.info(`Milvus connected`);
|
||||||
@@ -326,10 +329,19 @@ export class MilvusCtrl {
|
|||||||
id: string;
|
id: string;
|
||||||
teamId: string;
|
teamId: string;
|
||||||
datasetId: string;
|
datasetId: string;
|
||||||
|
int64: {
|
||||||
|
low: bigint;
|
||||||
|
high: bigint;
|
||||||
|
unsigned: boolean;
|
||||||
|
};
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
return rows.map((item) => ({
|
return rows.map((item) => ({
|
||||||
id: String(item.id),
|
id: String({
|
||||||
|
low: BigInt(item.int64.low),
|
||||||
|
high: BigInt(item.int64.high),
|
||||||
|
unsigned: item.int64.unsigned
|
||||||
|
}),
|
||||||
teamId: item.teamId,
|
teamId: item.teamId,
|
||||||
datasetId: item.datasetId
|
datasetId: item.datasetId
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user