chore: remove unsupported providers from switch statement in aiService
This commit is contained in:
@@ -412,17 +412,12 @@ export const analyzeCertificate = async (options: AnalyzeOptions): Promise<Repor
|
||||
return analyzeWithGemini(file, apiKey, model);
|
||||
case 'openai':
|
||||
return analyzeWithOpenAI(file, apiKey, model);
|
||||
case 'anthropic':
|
||||
return analyzeWithAnthropic(file, apiKey, model);
|
||||
case 'azure':
|
||||
return analyzeWithAzure(file, apiKey, endpoint!, model);
|
||||
case 'ollama':
|
||||
return analyzeWithOllama(file, endpoint!, model);
|
||||
case 'openrouter':
|
||||
return analyzeWithOpenRouter(file, apiKey, model);
|
||||
case 'minimax':
|
||||
return analyzeWithMinimax(file, apiKey, model);
|
||||
default:
|
||||
// @ts-ignore
|
||||
throw new Error(`Provedor não suportado: ${provider}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user