copyWith method
Implementation
DatasetChatModelOption copyWith({bool? active, bool? supportsAttachments, List<String>? accepts}) {
return DatasetChatModelOption(
backend: backend,
provider: provider,
providerFriendlyName: providerFriendlyName,
model: model,
modelFriendlyName: modelFriendlyName,
modelDescription: modelDescription,
modalities: modalities,
availableVoices: availableVoices,
defaultOutputVoice: defaultOutputVoice,
inputFormat: inputFormat,
outputFormat: outputFormat,
turnDetection: turnDetection,
realtimeProtocols: realtimeProtocols,
supportsAttachments: supportsAttachments ?? this.supportsAttachments,
accepts: accepts ?? this.accepts,
active: active ?? this.active,
);
}