# DocumentCompareComputePatchOptions

interface

Describes how a comparison is computed.

<a id="properties"></a>

## Properties

<a id="member-aiSource"></a>

### `aiSource?: AIOperationSource`

Which AI feature produced the processed data. You can use one of available values or pass a custom string. When set, the operations applying the patch will be stamped as made-by-AI. This information is passed to suggestions and revisions meta data. Such suggestions and revisions will be visually marked as made-by-AI accordingly to these features config ([`config.trackChanges.showAISource`](module_track-changes_trackchangesconfig-TrackChangesConfig.md#member-showAISource) and [`config.revisionHistory.showAISource`](module_revision-history_revisionhistoryconfig-RevisionHistoryConfig.md#member-showAISource)).

Do not set for changes coming from non-AI sources.

<a id="member-asSuggestions"></a>

### `asSuggestions?: boolean`

Whether the comparison marks removed content for track changes instead of removing it.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
