chore(ConfigManager): try fetching model list even when no API key is provided

This commit is contained in:
AnotiaWang
2025-03-03 19:16:34 +08:00
parent 11c88330ab
commit 10b4f81e7f

View File

@ -95,7 +95,6 @@
// Try to find available AI models based on selected provider
const debouncedListAiModels = useDebounceFn(async () => {
if (!config.value.ai.apiKey) return
if (!aiApiBase.value || !aiApiBase.value.startsWith('http')) return
try {