Compare commits

...

4 Commits

Author SHA1 Message Date
JU-NINE NGU CHO
f0003b47d5 Merge d5c86ce9ab into c3b8c1587c 2025-10-04 19:48:02 +01:00
RiverRay
c3b8c1587c Merge pull request #6637 from princeaden1/feat-xai-new-models
Some checks failed
Run Tests / test (push) Has been cancelled
Upstream Sync / Sync latest commits from upstream repo (push) Has been cancelled
feat: new models for xAI (#6559)
2025-09-29 19:37:17 +08:00
Adekunle
12ec11ed8a feat: new models for xAI (#6559) 2025-09-20 00:09:59 +01:00
chojuninengu
d5c86ce9ab Enhance Webpack configuration by adding fallbacks for Node.js core modules and integrating ProvidePlugin for Buffer and process support. 2025-04-29 10:56:55 +01:00
2 changed files with 21 additions and 0 deletions

View File

@@ -673,6 +673,11 @@ const xAIModes = [
"grok-3-beta",
"grok-3",
"grok-3-latest",
"grok-4",
"grok-4-0709",
"grok-4-fast-non-reasoning",
"grok-4-fast-reasoning",
"grok-code-fast-1",
];
const chatglmModels = [

View File

@@ -21,9 +21,25 @@ const nextConfig = {
}
config.resolve.fallback = {
...config.resolve.fallback,
child_process: false,
process: false,
path: false,
fs: false,
os: false,
util: false,
stream: false,
buffer: require.resolve('buffer/'),
events: require.resolve('events/'),
};
config.plugins.push(
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser',
}),
);
return config;
},
output: mode,