createPhindProvider function

PhindProvider createPhindProvider({
  1. required String apiKey,
  2. String model = 'Phind-70B',
  3. String baseUrl = 'https://https.extension.phind.com/agent/',
  4. double? temperature,
  5. int? maxTokens,
  6. String? systemPrompt,
})

Create a Phind provider with default settings

Implementation

PhindProvider createPhindProvider({
  required String apiKey,
  String model = 'Phind-70B',
  String baseUrl = 'https://https.extension.phind.com/agent/',
  double? temperature,
  int? maxTokens,
  String? systemPrompt,
}) {
  final config = PhindConfig(
    apiKey: apiKey,
    model: model,
    baseUrl: baseUrl,
    temperature: temperature,
    maxTokens: maxTokens,
    systemPrompt: systemPrompt,
  );

  return PhindProvider(config);
}