ProviderPreset constructor
const
ProviderPreset({
- required String id,
- required String name,
- required ProviderProtocol protocol,
- required String baseUrl,
- required bool requiresApiKey,
- List<
String> suggestedModels = const [], - StructuredOutputMode structuredOutput = StructuredOutputMode.jsonSchema,
- MaxTokensField maxTokensField = MaxTokensField.maxTokens,
- bool isLocal = false,
- String? apiKeyUrl,
- 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,
});