mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			f1b77fde7b
			...
			f0003b47d5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					f0003b47d5 | ||
| 
						 | 
					c3b8c1587c | ||
| 
						 | 
					12ec11ed8a | ||
| 
						 | 
					d5c86ce9ab | 
@@ -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 = [
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user