createPhindExplainerProvider function

PhindProvider createPhindExplainerProvider({
  1. required String apiKey,
  2. String model = 'Phind-70B',
  3. double? temperature = 0.3,
  4. int? maxTokens = 2000,
  5. String? systemPrompt = 'You are a coding tutor. Explain code concepts clearly and provide examples.',
})

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);
}