fix(models): Unexpected inability to disable image generation feature (#7401)

* fix(models): 修复禁用图片生成模型检查逻辑

* fix(models): use getBaseName()
This commit is contained in:
Wang Jiyuan 2025-06-20 22:30:14 +08:00 committed by GitHub
parent 8d247add98
commit b91ac0de1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2720,7 +2720,7 @@ export function isSupportedDisableGenerationModel(model: Model): boolean {
return false
}
return SUPPORTED_DISABLE_GENERATION_MODELS.includes(model.id)
return SUPPORTED_DISABLE_GENERATION_MODELS.includes(getBaseModelName(model.id))
}
export function getOpenAIWebSearchParams(model: Model, isEnableWebSearch?: boolean): Record<string, any> {