NocAIConfig constructor Null safety
Creates a NocAIConfig with the given parameters.
The provider is automatically detected from baseUrl if not specified.
The baseUrl should NOT include trailing slashes.
Implementation
NocAIConfig({
required this.apiKey,
required String baseUrl,
required this.model,
NocProvider? provider,
this.temperature,
this.maxTokens,
this.systemPrompt,
this.connectTimeout = const Duration(seconds: 30),
this.receiveTimeout = const Duration(seconds: 120),
}) : baseUrl = _normalizeUrl(baseUrl),
provider = provider ?? _detectProvider(baseUrl);