ProviderPreset constructor

const ProviderPreset({
  1. required String id,
  2. required String name,
  3. required ProviderProtocol protocol,
  4. required String baseUrl,
  5. required bool requiresApiKey,
  6. List<String> suggestedModels = const [],
  7. StructuredOutputMode structuredOutput = StructuredOutputMode.jsonSchema,
  8. MaxTokensField maxTokensField = MaxTokensField.maxTokens,
  9. bool isLocal = false,
  10. String? apiKeyUrl,
  11. String? note,
})

Implementation

const ProviderPreset({
  required this.id,
  required this.name,
  required this.protocol,
  required this.baseUrl,
  required this.requiresApiKey,
  this.suggestedModels = const [],
  this.structuredOutput = StructuredOutputMode.jsonSchema,
  this.maxTokensField = MaxTokensField.maxTokens,
  this.isLocal = false,
  this.apiKeyUrl,
  this.note,
});