forked from GithubProxy/ChatGPT-Next-Web
Merge pull request #5998 from dupl/main
Use regular expressions to make the code more concise.
This commit is contained in:
commit
c0062ff280
@ -305,9 +305,7 @@ export const VISION_MODEL_REGEXES = [
|
|||||||
/qwen2-vl/,
|
/qwen2-vl/,
|
||||||
/gpt-4-turbo(?!.*preview)/, // Matches "gpt-4-turbo" but not "gpt-4-turbo-preview"
|
/gpt-4-turbo(?!.*preview)/, // Matches "gpt-4-turbo" but not "gpt-4-turbo-preview"
|
||||||
/^dall-e-3$/, // Matches exactly "dall-e-3"
|
/^dall-e-3$/, // Matches exactly "dall-e-3"
|
||||||
/glm-4v-plus/,
|
|
||||||
/glm-4v/,
|
/glm-4v/,
|
||||||
/glm-4v-flash/,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];
|
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];
|
||||||
|
Loading…
Reference in New Issue
Block a user