forked from open-webui/open-webui
main #2
5 changed files with 17 additions and 6 deletions
|
@ -10,13 +10,15 @@ export default {
|
||||||
contextSeparator: '_',
|
contextSeparator: '_',
|
||||||
createOldCatalogs: false,
|
createOldCatalogs: false,
|
||||||
defaultNamespace: 'translation',
|
defaultNamespace: 'translation',
|
||||||
defaultValue: '',
|
defaultValue: function (locale, namespace, key, value) {
|
||||||
|
return key;
|
||||||
|
},
|
||||||
indentation: 2,
|
indentation: 2,
|
||||||
keepRemoved: false,
|
keepRemoved: false,
|
||||||
keySeparator: false,
|
keySeparator: false,
|
||||||
lexers: {
|
lexers: {
|
||||||
svelte: ['JavascriptLexer'],
|
svelte: ['JavascriptLexer'],
|
||||||
js: ['JavascriptLexer'], // if you're writing jsx inside .js files, change this to JsxLexer
|
js: ['JavascriptLexer'],
|
||||||
ts: ['JavascriptLexer'],
|
ts: ['JavascriptLexer'],
|
||||||
|
|
||||||
default: ['JavascriptLexer']
|
default: ['JavascriptLexer']
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
export let suggestionPrompts = [];
|
export let suggestionPrompts = [];
|
||||||
export let autoScroll = true;
|
export let autoScroll = true;
|
||||||
let chatTextAreaElement:HTMLTextAreaElement
|
let chatTextAreaElement: HTMLTextAreaElement;
|
||||||
let filesInputElement;
|
let filesInputElement;
|
||||||
|
|
||||||
let promptsElement;
|
let promptsElement;
|
||||||
|
|
|
@ -82,7 +82,10 @@
|
||||||
fullScreenMode = settings.fullScreenMode ?? false;
|
fullScreenMode = settings.fullScreenMode ?? false;
|
||||||
titleAutoGenerateModel = settings.titleAutoGenerateModel ?? '';
|
titleAutoGenerateModel = settings.titleAutoGenerateModel ?? '';
|
||||||
titleGenerationPrompt =
|
titleGenerationPrompt =
|
||||||
settings.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}';
|
settings.titleGenerationPrompt ??
|
||||||
|
$i18n.t(
|
||||||
|
"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':"
|
||||||
|
) + ' {{prompt}}';
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -769,7 +769,10 @@
|
||||||
if ($settings.titleAutoGenerate ?? true) {
|
if ($settings.titleAutoGenerate ?? true) {
|
||||||
const title = await generateTitle(
|
const title = await generateTitle(
|
||||||
localStorage.token,
|
localStorage.token,
|
||||||
$settings?.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}',
|
$settings?.titleGenerationPrompt ??
|
||||||
|
$i18n.t(
|
||||||
|
"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':"
|
||||||
|
) + ' {{prompt}}',
|
||||||
$settings?.titleAutoGenerateModel ?? selectedModels[0],
|
$settings?.titleAutoGenerateModel ?? selectedModels[0],
|
||||||
userPrompt
|
userPrompt
|
||||||
);
|
);
|
||||||
|
|
|
@ -778,7 +778,10 @@
|
||||||
if ($settings.titleAutoGenerate ?? true) {
|
if ($settings.titleAutoGenerate ?? true) {
|
||||||
const title = await generateTitle(
|
const title = await generateTitle(
|
||||||
localStorage.token,
|
localStorage.token,
|
||||||
$settings?.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}',
|
$settings?.titleGenerationPrompt ??
|
||||||
|
$i18n.t(
|
||||||
|
"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':"
|
||||||
|
) + ' {{prompt}}',
|
||||||
$settings?.titleAutoGenerateModel ?? selectedModels[0],
|
$settings?.titleAutoGenerateModel ?? selectedModels[0],
|
||||||
userPrompt
|
userPrompt
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue