mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 16:33:49 +00:00
HTTP support jsonPath; System plugin support save file. (#2969)
* perf: system plugin auto save file * feat: http support jsonPath * fix: assistant response * reset milvus version * fix: textarea register * fix: global variable * delete tip * doc
This commit is contained in:
@@ -25,7 +25,7 @@ export const countGptMessagesTokens = async (
|
||||
number
|
||||
>({
|
||||
name: WorkerNameEnum.countGptMessagesTokens,
|
||||
maxReservedThreads: global.systemEnv?.tokenWorkers || 20
|
||||
maxReservedThreads: global.systemEnv?.tokenWorkers || 50
|
||||
});
|
||||
|
||||
const total = await workerController.run({ messages, tools, functionCall });
|
||||
|
@@ -24,10 +24,7 @@ export class MilvusCtrl {
|
||||
|
||||
global.milvusClient = new MilvusClient({
|
||||
address: MILVUS_ADDRESS,
|
||||
token: MILVUS_TOKEN,
|
||||
loaderOptions: {
|
||||
longs: Function
|
||||
}
|
||||
token: MILVUS_TOKEN
|
||||
});
|
||||
|
||||
addLog.info(`Milvus connected`);
|
||||
@@ -329,19 +326,10 @@ export class MilvusCtrl {
|
||||
id: string;
|
||||
teamId: string;
|
||||
datasetId: string;
|
||||
int64: {
|
||||
low: bigint;
|
||||
high: bigint;
|
||||
unsigned: boolean;
|
||||
};
|
||||
}[];
|
||||
|
||||
return rows.map((item) => ({
|
||||
id: String({
|
||||
low: BigInt(item.int64.low),
|
||||
high: BigInt(item.int64.high),
|
||||
unsigned: item.int64.unsigned
|
||||
}),
|
||||
id: String(item.id),
|
||||
teamId: item.teamId,
|
||||
datasetId: item.datasetId
|
||||
}));
|
||||
|
Reference in New Issue
Block a user