mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
enh: citations option in model editor
This commit is contained in:
parent
da8f7cff2f
commit
09c6e4b92f
@ -656,7 +656,7 @@
|
|||||||
<Error content={message?.error?.content ?? message.content} />
|
<Error content={message?.error?.content ?? message.content} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if message.citations}
|
{#if message.citations && (model?.info?.meta?.capabilities?.citations ?? true)}
|
||||||
<Citations citations={message.citations} />
|
<Citations citations={message.citations} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
@ -10,12 +10,14 @@
|
|||||||
vision: $i18n.t('Model accepts image inputs'),
|
vision: $i18n.t('Model accepts image inputs'),
|
||||||
usage: $i18n.t(
|
usage: $i18n.t(
|
||||||
'Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.'
|
'Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.'
|
||||||
)
|
),
|
||||||
|
citations: $i18n.t('Displays citations in the response')
|
||||||
};
|
};
|
||||||
|
|
||||||
export let capabilities: {
|
export let capabilities: {
|
||||||
vision?: boolean;
|
vision?: boolean;
|
||||||
usage?: boolean;
|
usage?: boolean;
|
||||||
|
citations?: boolean;
|
||||||
} = {};
|
} = {};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -71,7 +71,8 @@
|
|||||||
let params = {};
|
let params = {};
|
||||||
let capabilities = {
|
let capabilities = {
|
||||||
vision: true,
|
vision: true,
|
||||||
usage: undefined
|
usage: undefined,
|
||||||
|
citations: true
|
||||||
};
|
};
|
||||||
|
|
||||||
let knowledge = [];
|
let knowledge = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user