createPhindExplainerProvider function
Create a Phind provider optimized for code explanation
Implementation
PhindProvider createPhindExplainerProvider({
required String apiKey,
String model = 'Phind-70B',
double? temperature = 0.3,
int? maxTokens = 2000,
String? systemPrompt =
'You are a coding tutor. Explain code concepts clearly and provide examples.',
}) {
final config = PhindConfig(
apiKey: apiKey,
model: model,
temperature: temperature,
maxTokens: maxTokens,
systemPrompt: systemPrompt,
);
return PhindProvider(config);
}