feat: response watermark

This commit is contained in:
Timothy Jaeryang Baek
2025-05-14 23:53:28 +04:00
parent b143c71da2
commit 0a8cecfbfa
7 changed files with 39 additions and 10 deletions

View File

@@ -157,6 +157,10 @@
const copyToClipboard = async (text) => {
text = removeAllDetails(text);
if (($config?.ui?.response_watermark ?? '').trim() !== '') {
text = `${text}\n\n${$config?.ui?.response_watermark}`;
}
const res = await _copyToClipboard(text, $settings?.copyFormatted ?? false);
if (res) {
toast.success($i18n.t('Copying to clipboard was successful!'));