Compare commits

...

4 Commits

Author SHA1 Message Date
JU-NINE NGU CHO
3ec8f03a8d
Merge d5c86ce9ab into 80d7fd9b98 2025-07-14 15:19:04 +08:00
RiverRay
80d7fd9b98
Merge pull request #6562 from LePao1/main
Some checks failed
Run Tests / test (push) Has been cancelled
fix: Update the regular expressions to support image upload functionality for multimodal Claude 4 and Gemini 2.5 series.
2025-07-14 13:37:52 +08:00
LePao1
e8a18d0b38 fix: Update the regular expressions to support image upload functionality for multimodal Claude 4 and Gemini 2.5 series. 2025-07-13 21:20:20 +08: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 4 deletions

View File

@ -479,19 +479,20 @@ export const VISION_MODEL_REGEXES = [
/vision/,
/gpt-4o/,
/gpt-4\.1/,
/claude-3/,
/claude.*[34]/,
/gemini-1\.5/,
/gemini-exp/,
/gemini-2\.0/,
/gemini-2\.[05]/,
/learnlm/,
/qwen-vl/,
/qwen2-vl/,
/gpt-4-turbo(?!.*preview)/, // Matches "gpt-4-turbo" but not "gpt-4-turbo-preview"
/^dall-e-3$/, // Matches exactly "dall-e-3"
/gpt-4-turbo(?!.*preview)/,
/^dall-e-3$/,
/glm-4v/,
/vl/i,
/o3/,
/o4-mini/,
/grok-4/i,
];
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];

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,