chore: remove unsupported providers from switch statement in aiService

This commit is contained in:
2026-06-23 19:28:22 +00:00
parent a94744f60c
commit fef134186a
+1 -6
View File
@@ -412,17 +412,12 @@ export const analyzeCertificate = async (options: AnalyzeOptions): Promise<Repor
return analyzeWithGemini(file, apiKey, model); return analyzeWithGemini(file, apiKey, model);
case 'openai': case 'openai':
return analyzeWithOpenAI(file, apiKey, model); return analyzeWithOpenAI(file, apiKey, model);
case 'anthropic':
return analyzeWithAnthropic(file, apiKey, model);
case 'azure':
return analyzeWithAzure(file, apiKey, endpoint!, model);
case 'ollama': case 'ollama':
return analyzeWithOllama(file, endpoint!, model); return analyzeWithOllama(file, endpoint!, model);
case 'openrouter': case 'openrouter':
return analyzeWithOpenRouter(file, apiKey, model); return analyzeWithOpenRouter(file, apiKey, model);
case 'minimax':
return analyzeWithMinimax(file, apiKey, model);
default: default:
// @ts-ignore
throw new Error(`Provedor não suportado: ${provider}`); throw new Error(`Provedor não suportado: ${provider}`);
} }
}; };