perf: tiktoken count (#1507)

* perf: tiktoken count

* fix: rerank histories

* fix: rerank histories

* update npmrc
This commit is contained in:
Archer
2024-05-16 15:42:15 +08:00
committed by GitHub
parent c6d9b15897
commit 6067f5aff3
8 changed files with 67 additions and 110 deletions

View File

@@ -36,6 +36,10 @@ const nextConfig = {
unknownContextCritical: false
};
if (!config.externals) {
config.externals = [];
}
if (isServer) {
config.externals.push('worker_threads');
@@ -73,11 +77,13 @@ const nextConfig = {
fs: false
}
};
if (!config.externals) {
config.externals = [];
}
}
config.experiments = {
asyncWebAssembly: true,
layers: true
};
return config;
},
transpilePackages: ['@fastgpt/*', 'ahooks', '@chakra-ui/*', 'react'],