copyWith method
PlaygroundSettings
copyWith({ - PlaygroundSourceKind? kind,
- String? modelDir,
- String? provider,
- String? baseUrl,
- String? model,
- String? apiKey,
- String? systemPrompt,
- int? maxNewTokens,
- double? temperature,
- int? seed,
- bool clearSeed = false,
- String? jsonSchema,
- List<String>? stop,
})
Implementation
PlaygroundSettings copyWith({
PlaygroundSourceKind? kind,
String? modelDir,
String? provider,
String? baseUrl,
String? model,
String? apiKey,
String? systemPrompt,
int? maxNewTokens,
double? temperature,
int? seed,
bool clearSeed = false,
String? jsonSchema,
List<String>? stop,
}) => PlaygroundSettings(
kind: kind ?? this.kind,
modelDir: modelDir ?? this.modelDir,
provider: provider ?? this.provider,
baseUrl: baseUrl ?? this.baseUrl,
model: model ?? this.model,
apiKey: apiKey ?? this.apiKey,
systemPrompt: systemPrompt ?? this.systemPrompt,
maxNewTokens: maxNewTokens ?? this.maxNewTokens,
temperature: temperature ?? this.temperature,
seed: clearSeed ? null : seed ?? this.seed,
jsonSchema: jsonSchema ?? this.jsonSchema,
stop: stop ?? this.stop,
);