copyWith method

DatasetChatModelOption copyWith({
  1. bool? active,
  2. bool? supportsAttachments,
  3. List<String>? accepts,
})

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,
  );
}