copyWith method
DeepSeekConfig
copyWith({
- String? apiKey,
- String? baseUrl,
- String? model,
- int? maxTokens,
- double? temperature,
- String? systemPrompt,
- Duration? timeout,
- double? topP,
- int? topK,
- List<
Tool> ? tools, - ToolChoice? toolChoice,
- bool? logprobs,
- int? topLogprobs,
- double? frequencyPenalty,
- double? presencePenalty,
- Map<
String, dynamic> ? responseFormat,
Implementation
DeepSeekConfig copyWith({
String? apiKey,
String? baseUrl,
String? model,
int? maxTokens,
double? temperature,
String? systemPrompt,
Duration? timeout,
double? topP,
int? topK,
List<Tool>? tools,
ToolChoice? toolChoice,
bool? logprobs,
int? topLogprobs,
double? frequencyPenalty,
double? presencePenalty,
Map<String, dynamic>? responseFormat,
}) =>
DeepSeekConfig(
apiKey: apiKey ?? this.apiKey,
baseUrl: baseUrl ?? this.baseUrl,
model: model ?? this.model,
maxTokens: maxTokens ?? this.maxTokens,
temperature: temperature ?? this.temperature,
systemPrompt: systemPrompt ?? this.systemPrompt,
timeout: timeout ?? this.timeout,
topP: topP ?? this.topP,
topK: topK ?? this.topK,
tools: tools ?? this.tools,
toolChoice: toolChoice ?? this.toolChoice,
logprobs: logprobs ?? this.logprobs,
topLogprobs: topLogprobs ?? this.topLogprobs,
frequencyPenalty: frequencyPenalty ?? this.frequencyPenalty,
presencePenalty: presencePenalty ?? this.presencePenalty,
responseFormat: responseFormat ?? this.responseFormat,
);