mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 22:05:19 +00:00
Merge branch 'main' of https://github.com/ai-friend-coming/open-webui-next
This commit is contained in:
commit
24813ee56e
1 changed files with 57 additions and 57 deletions
|
|
@ -174,10 +174,7 @@ $: {
|
||||||
model = platformModel ?? userModel;
|
model = platformModel ?? userModel;
|
||||||
|
|
||||||
modelName =
|
modelName =
|
||||||
message.modelName ??
|
message.modelName ?? model?.name ?? userModel?.name ?? userModel?.model_id ?? message.model;
|
||||||
model?.name ??
|
|
||||||
(userModel?.name ?? userModel?.model_id) ??
|
|
||||||
message.model;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let edit = false;
|
let edit = false;
|
||||||
|
|
@ -1015,7 +1012,8 @@ $: {
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)}
|
<!-- 朗读按钮 -->
|
||||||
|
<!-- {#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)}
|
||||||
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
|
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
|
||||||
<button
|
<button
|
||||||
aria-label={$i18n.t('Read Aloud')}
|
aria-label={$i18n.t('Read Aloud')}
|
||||||
|
|
@ -1097,7 +1095,7 @@ $: {
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{/if}
|
{/if} -->
|
||||||
|
|
||||||
{#if $config?.features.enable_image_generation && ($user?.role === 'admin' || $user?.permissions?.features?.image_generation) && !readOnly}
|
{#if $config?.features.enable_image_generation && ($user?.role === 'admin' || $user?.permissions?.features?.image_generation) && !readOnly}
|
||||||
<Tooltip content={$i18n.t('Generate Image')} placement="bottom">
|
<Tooltip content={$i18n.t('Generate Image')} placement="bottom">
|
||||||
|
|
@ -1211,7 +1209,8 @@ $: {
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if !readOnly}
|
{#if !readOnly}
|
||||||
{#if !$temporaryChatEnabled && ($config?.features.enable_message_rating ?? true) && ($user?.role === 'admin' || ($user?.permissions?.chat?.rate_response ?? true))}
|
<!-- 点赞和踩 -->
|
||||||
|
<!-- {#if !$temporaryChatEnabled && ($config?.features.enable_message_rating ?? true) && ($user?.role === 'admin' || ($user?.permissions?.chat?.rate_response ?? true))}
|
||||||
<Tooltip content={$i18n.t('Good Response')} placement="bottom">
|
<Tooltip content={$i18n.t('Good Response')} placement="bottom">
|
||||||
<button
|
<button
|
||||||
aria-label={$i18n.t('Good Response')}
|
aria-label={$i18n.t('Good Response')}
|
||||||
|
|
@ -1287,9 +1286,10 @@ $: {
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{/if}
|
{/if} -->
|
||||||
|
|
||||||
{#if isLastMessage && ($user?.role === 'admin' || ($user?.permissions?.chat?.continue_response ?? true))}
|
<!-- 继续生成按钮 -->
|
||||||
|
<!-- {#if isLastMessage && ($user?.role === 'admin' || ($user?.permissions?.chat?.continue_response ?? true))}
|
||||||
<Tooltip content={$i18n.t('Continue Response')} placement="bottom">
|
<Tooltip content={$i18n.t('Continue Response')} placement="bottom">
|
||||||
<button
|
<button
|
||||||
aria-label={$i18n.t('Continue Response')}
|
aria-label={$i18n.t('Continue Response')}
|
||||||
|
|
@ -1324,7 +1324,7 @@ $: {
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{/if}
|
{/if} -->
|
||||||
|
|
||||||
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.regenerate_response ?? true)}
|
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.regenerate_response ?? true)}
|
||||||
{#if $settings?.regenerateMenu ?? true}
|
{#if $settings?.regenerateMenu ?? true}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue