mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-25 06:14:06 +00:00
perf: tiktoken count (#1507)
* perf: tiktoken count * fix: rerank histories * fix: rerank histories * update npmrc
This commit is contained in:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user