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);
|
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}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user