fix(models): update glm-4 model regex for improved matching (#7793)

- Changed the glm-4 model entry to use a regex pattern for better flexibility in version matching, allowing for optional version numbers and suffixes.
This commit is contained in:
SuYao 2025-07-05 13:25:19 +08:00 committed by GitHub
parent a924da10c2
commit 619aadce41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,7 +164,7 @@ const visionAllowedModels = [
'claude-sonnet-4',
'claude-opus-4',
'vision',
'glm-4v',
'glm-4(?:\\.\\d+)?v(?:-[\\w-]+)?',
'qwen-vl',
'qwen2-vl',
'qwen2.5-vl',