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:
Archer
2024-10-23 00:40:54 +08:00
committed by shilin66
parent 036bdabe5d
commit ab08fc80d3
30 changed files with 374 additions and 163 deletions

View File

@@ -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 });

View File

@@ -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
}));