mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
feat: response watermark
This commit is contained in:
@@ -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!'));
|
||||
|
||||
Reference in New Issue
Block a user