refactor(ai): 简化AI模块逻辑

This commit is contained in:
kuaifan
2026-04-04 23:18:21 +00:00
parent a2acd6f6e4
commit 9e65500748
5 changed files with 0 additions and 447 deletions

View File

@@ -199,7 +199,6 @@ class Setting extends AbstractModel
$key = trim((string)($setting[$vendor . '_key'] ?? ''));
return match ($vendor) {
'ollama' => $key !== '' || !empty($setting['ollama_base_url']),
'wenxin' => $key !== '' && !empty($setting['wenxin_secret']),
default => $key !== '',
};
}