mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
Compare commits
4 Commits
1e44a9222d
...
3ec8f03a8d
Author | SHA1 | Date | |
---|---|---|---|
|
3ec8f03a8d | ||
|
80d7fd9b98 | ||
|
e8a18d0b38 | ||
|
d5c86ce9ab |
@ -479,19 +479,20 @@ export const VISION_MODEL_REGEXES = [
|
|||||||
/vision/,
|
/vision/,
|
||||||
/gpt-4o/,
|
/gpt-4o/,
|
||||||
/gpt-4\.1/,
|
/gpt-4\.1/,
|
||||||
/claude-3/,
|
/claude.*[34]/,
|
||||||
/gemini-1\.5/,
|
/gemini-1\.5/,
|
||||||
/gemini-exp/,
|
/gemini-exp/,
|
||||||
/gemini-2\.0/,
|
/gemini-2\.[05]/,
|
||||||
/learnlm/,
|
/learnlm/,
|
||||||
/qwen-vl/,
|
/qwen-vl/,
|
||||||
/qwen2-vl/,
|
/qwen2-vl/,
|
||||||
/gpt-4-turbo(?!.*preview)/, // Matches "gpt-4-turbo" but not "gpt-4-turbo-preview"
|
/gpt-4-turbo(?!.*preview)/,
|
||||||
/^dall-e-3$/, // Matches exactly "dall-e-3"
|
/^dall-e-3$/,
|
||||||
/glm-4v/,
|
/glm-4v/,
|
||||||
/vl/i,
|
/vl/i,
|
||||||
/o3/,
|
/o3/,
|
||||||
/o4-mini/,
|
/o4-mini/,
|
||||||
|
/grok-4/i,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];
|
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];
|
||||||
|
@ -21,9 +21,25 @@ const nextConfig = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.resolve.fallback = {
|
config.resolve.fallback = {
|
||||||
|
...config.resolve.fallback,
|
||||||
child_process: false,
|
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;
|
return config;
|
||||||
},
|
},
|
||||||
output: mode,
|
output: mode,
|
||||||
|
Loading…
Reference in New Issue
Block a user