createDeepSeekProvider function
Create a DeepSeek provider with default configuration
Implementation
DeepSeekProvider createDeepSeekProvider({
required String apiKey,
String? model,
String? baseUrl,
int? maxTokens,
double? temperature,
String? systemPrompt,
Duration? timeout,
bool? stream,
double? topP,
int? topK,
}) {
final config = DeepSeekConfig(
apiKey: apiKey,
model: model ?? 'deepseek-chat',
baseUrl: baseUrl ?? 'https://api.deepseek.com/v1/',
maxTokens: maxTokens,
temperature: temperature,
systemPrompt: systemPrompt,
timeout: timeout,
topP: topP,
topK: topK,
);
return DeepSeekProvider(config);
}