Skip to content

Commit 304aed0

Browse files
committed
chore: format
1 parent 7b37cdc commit 304aed0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+351
-88
lines changed

backend/open_webui/routers/retrieval.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -550,12 +550,8 @@ async def update_rag_config(
550550
form_data.web.search.searchapi_engine
551551
)
552552

553-
request.app.state.config.SERPAPI_API_KEY = (
554-
form_data.web.search.serpapi_api_key
555-
)
556-
request.app.state.config.SERPAPI_ENGINE = (
557-
form_data.web.search.serpapi_engine
558-
)
553+
request.app.state.config.SERPAPI_API_KEY = form_data.web.search.serpapi_api_key
554+
request.app.state.config.SERPAPI_ENGINE = form_data.web.search.serpapi_engine
559555

560556
request.app.state.config.JINA_API_KEY = form_data.web.search.jina_api_key
561557
request.app.state.config.BING_SEARCH_V7_ENDPOINT = (

backend/open_webui/routers/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def update_task_config(
125125
return {
126126
"TASK_MODEL": request.app.state.config.TASK_MODEL,
127127
"TASK_MODEL_EXTERNAL": request.app.state.config.TASK_MODEL_EXTERNAL,
128-
"ENABLE_TITLE_GENERATION": request.app.state.config.ENABLE_TITLE_GENERATION,
128+
"ENABLE_TITLE_GENERATION": request.app.state.config.ENABLE_TITLE_GENERATION,
129129
"TITLE_GENERATION_PROMPT_TEMPLATE": request.app.state.config.TITLE_GENERATION_PROMPT_TEMPLATE,
130130
"IMAGE_PROMPT_GENERATION_PROMPT_TEMPLATE": request.app.state.config.IMAGE_PROMPT_GENERATION_PROMPT_TEMPLATE,
131131
"ENABLE_AUTOCOMPLETE_GENERATION": request.app.state.config.ENABLE_AUTOCOMPLETE_GENERATION,
@@ -149,7 +149,7 @@ async def generate_title(
149149
status_code=status.HTTP_200_OK,
150150
content={"detail": "Title generation is disabled"},
151151
)
152-
152+
153153
if getattr(request.state, "direct", False) and hasattr(request.state, "model"):
154154
models = {
155155
request.state.model["id"]: request.state.model,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-webui",
3-
"version": "0.5.11",
3+
"version": "0.5.12",
44
"private": true,
55
"scripts": {
66
"dev": "npm run pyodide:fetch && vite dev --host",

src/lib/components/admin/Settings/Interface.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@
134134
{$i18n.t('Title Generation')}
135135
</div>
136136

137-
<Tooltip content={$i18n.t('Enable title generation for chat messages')}>
138-
<Switch bind:state={taskConfig.ENABLE_TITLE_GENERATION} />
139-
</Tooltip>
137+
<Switch bind:state={taskConfig.ENABLE_TITLE_GENERATION} />
140138
</div>
141139

142140
{#if taskConfig.ENABLE_TITLE_GENERATION}

src/lib/i18n/locales/ar-BH/translation.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"Brave Search API Key": "مفتاح واجهة برمجة تطبيقات البحث الشجاع",
127127
"By {{name}}": "",
128128
"Bypass SSL verification for Websites": "تجاوز التحقق من SSL للموقع",
129+
"Calendar": "",
129130
"Call": "",
130131
"Call feature is not supported when using Web STT engine": "",
131132
"Camera": "",
@@ -335,7 +336,6 @@
335336
"Embedding model set to \"{{embedding_model}}\"": "تم تعيين نموذج التضمين على \"{{embedding_model}}\"",
336337
"Enable API Key": "",
337338
"Enable autocomplete generation for chat messages": "",
338-
"Enable title generation for chat messages": "",
339339
"Enable Code Interpreter": "",
340340
"Enable Community Sharing": "تمكين مشاركة المجتمع",
341341
"Enable Google Drive": "",
@@ -387,6 +387,8 @@
387387
"Enter SearchApi Engine": "",
388388
"Enter Searxng Query URL": "أدخل عنوان URL لاستعلام Searxng",
389389
"Enter Seed": "",
390+
"Enter SerpApi API Key": "",
391+
"Enter SerpApi Engine": "",
390392
"Enter Serper API Key": "أدخل مفتاح واجهة برمجة تطبيقات Serper",
391393
"Enter Serply API Key": "",
392394
"Enter Serpstack API Key": "أدخل مفتاح واجهة برمجة تطبيقات Serpstack",
@@ -514,6 +516,7 @@
514516
"Hex Color": "",
515517
"Hex Color - Leave empty for default color": "",
516518
"Hide": "أخفاء",
519+
"Home": "",
517520
"Host": "",
518521
"How can I help you today?": "كيف استطيع مساعدتك اليوم؟",
519522
"How would you rate this response?": "",
@@ -867,6 +870,8 @@
867870
"Send message": "يُرجى إدخال طلبك هنا.",
868871
"Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.": "",
869872
"September": "سبتمبر",
873+
"SerpApi API Key": "",
874+
"SerpApi Engine": "",
870875
"Serper API Key": "مفتاح واجهة برمجة تطبيقات سيربر",
871876
"Serply API Key": "",
872877
"Serpstack API Key": "مفتاح واجهة برمجة تطبيقات Serpstack",
@@ -929,7 +934,6 @@
929934
"System": "النظام",
930935
"System Instructions": "",
931936
"System Prompt": "محادثة النظام",
932-
"Title Generation": "",
933937
"Tags Generation": "",
934938
"Tags Generation Prompt": "",
935939
"Tail free sampling is used to reduce the impact of less probable tokens from the output. A higher value (e.g., 2.0) will reduce the impact more, while a value of 1.0 disables this setting. (default: 1)": "",
@@ -980,6 +984,7 @@
980984
"Title (e.g. Tell me a fun fact)": "(e.g. Tell me a fun fact) العناون",
981985
"Title Auto-Generation": "توليد تلقائي للعنوان",
982986
"Title cannot be an empty string.": "العنوان مطلوب",
987+
"Title Generation": "",
983988
"Title Generation Prompt": "موجه إنشاء العنوان",
984989
"TLS": "",
985990
"To access the available model names for downloading,": "للوصول إلى أسماء الموديلات المتاحة للتنزيل،",

src/lib/i18n/locales/bg-BG/translation.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"Brave Search API Key": "Смел ключ за API за търсене",
127127
"By {{name}}": "",
128128
"Bypass SSL verification for Websites": "Изключване на SSL проверката за сайтове",
129+
"Calendar": "",
129130
"Call": "",
130131
"Call feature is not supported when using Web STT engine": "",
131132
"Camera": "",
@@ -335,7 +336,6 @@
335336
"Embedding model set to \"{{embedding_model}}\"": "Модел за вграждане е настроен на \"{{embedding_model}}\"",
336337
"Enable API Key": "",
337338
"Enable autocomplete generation for chat messages": "",
338-
"Enable title generation for chat messages": "",
339339
"Enable Code Interpreter": "",
340340
"Enable Community Sharing": "Разрешаване на споделяне в общност",
341341
"Enable Google Drive": "",
@@ -387,6 +387,8 @@
387387
"Enter SearchApi Engine": "",
388388
"Enter Searxng Query URL": "Въведете URL адреса на заявката на Searxng",
389389
"Enter Seed": "",
390+
"Enter SerpApi API Key": "",
391+
"Enter SerpApi Engine": "",
390392
"Enter Serper API Key": "Въведете Serper API ключ",
391393
"Enter Serply API Key": "",
392394
"Enter Serpstack API Key": "Въведете Serpstack API ключ",
@@ -514,6 +516,7 @@
514516
"Hex Color": "",
515517
"Hex Color - Leave empty for default color": "",
516518
"Hide": "Скрий",
519+
"Home": "",
517520
"Host": "",
518521
"How can I help you today?": "Как мога да ви помогна днес?",
519522
"How would you rate this response?": "",
@@ -867,6 +870,8 @@
867870
"Send message": "Изпращане на съобщение",
868871
"Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.": "",
869872
"September": "Септември",
873+
"SerpApi API Key": "",
874+
"SerpApi Engine": "",
870875
"Serper API Key": "Serper API ключ",
871876
"Serply API Key": "",
872877
"Serpstack API Key": "Serpstack API ключ",
@@ -929,7 +934,6 @@
929934
"System": "Система",
930935
"System Instructions": "",
931936
"System Prompt": "Системен Промпт",
932-
"Title Generation": "",
933937
"Tags Generation": "",
934938
"Tags Generation Prompt": "",
935939
"Tail free sampling is used to reduce the impact of less probable tokens from the output. A higher value (e.g., 2.0) will reduce the impact more, while a value of 1.0 disables this setting. (default: 1)": "",
@@ -980,6 +984,7 @@
980984
"Title (e.g. Tell me a fun fact)": "Заглавие (напр. Моля, кажете ми нещо забавно)",
981985
"Title Auto-Generation": "Автоматично Генериране на Заглавие",
982986
"Title cannot be an empty string.": "Заглавието не може да бъде празно.",
987+
"Title Generation": "",
983988
"Title Generation Prompt": "Промпт за Генериране на Заглавие",
984989
"TLS": "",
985990
"To access the available model names for downloading,": "За да получите достъп до наличните имена на модели за изтегляне,",

src/lib/i18n/locales/bn-BD/translation.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"Brave Search API Key": "সাহসী অনুসন্ধান API কী",
127127
"By {{name}}": "",
128128
"Bypass SSL verification for Websites": "ওয়েবসাইটের জন্য SSL যাচাই বাতিল করুন",
129+
"Calendar": "",
129130
"Call": "",
130131
"Call feature is not supported when using Web STT engine": "",
131132
"Camera": "",
@@ -335,7 +336,6 @@
335336
"Embedding model set to \"{{embedding_model}}\"": "ইমেজ ইমেবডিং মডেল সেট করা হয়েছে - \"{{embedding_model}}\"",
336337
"Enable API Key": "",
337338
"Enable autocomplete generation for chat messages": "",
338-
"Enable title generation for chat messages": "",
339339
"Enable Code Interpreter": "",
340340
"Enable Community Sharing": "সম্প্রদায় শেয়ারকরণ সক্ষম করুন",
341341
"Enable Google Drive": "",
@@ -387,6 +387,8 @@
387387
"Enter SearchApi Engine": "",
388388
"Enter Searxng Query URL": "Searxng ক্যোয়ারী URL লিখুন",
389389
"Enter Seed": "",
390+
"Enter SerpApi API Key": "",
391+
"Enter SerpApi Engine": "",
390392
"Enter Serper API Key": "Serper API কী লিখুন",
391393
"Enter Serply API Key": "",
392394
"Enter Serpstack API Key": "Serpstack API কী লিখুন",
@@ -514,6 +516,7 @@
514516
"Hex Color": "",
515517
"Hex Color - Leave empty for default color": "",
516518
"Hide": "লুকান",
519+
"Home": "",
517520
"Host": "",
518521
"How can I help you today?": "আপনাকে আজ কিভাবে সাহায্য করতে পারি?",
519522
"How would you rate this response?": "",
@@ -867,6 +870,8 @@
867870
"Send message": "মেসেজ পাঠান",
868871
"Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.": "",
869872
"September": "সেপ্টেম্বর",
873+
"SerpApi API Key": "",
874+
"SerpApi Engine": "",
870875
"Serper API Key": "Serper API Key",
871876
"Serply API Key": "",
872877
"Serpstack API Key": "Serpstack API Key",
@@ -929,7 +934,6 @@
929934
"System": "সিস্টেম",
930935
"System Instructions": "",
931936
"System Prompt": "সিস্টেম প্রম্পট",
932-
"Title Generation": "",
933937
"Tags Generation": "",
934938
"Tags Generation Prompt": "",
935939
"Tail free sampling is used to reduce the impact of less probable tokens from the output. A higher value (e.g., 2.0) will reduce the impact more, while a value of 1.0 disables this setting. (default: 1)": "",
@@ -980,6 +984,7 @@
980984
"Title (e.g. Tell me a fun fact)": "শিরোনাম (একটি উপস্থিতি বিবরণ জানান)",
981985
"Title Auto-Generation": "স্বয়ংক্রিয় শিরোনামগঠন",
982986
"Title cannot be an empty string.": "শিরোনাম অবশ্যই একটি পাশাপাশি শব্দ হতে হবে।",
987+
"Title Generation": "",
983988
"Title Generation Prompt": "শিরোনামগঠন প্রম্পট",
984989
"TLS": "",
985990
"To access the available model names for downloading,": "ডাউনলোডের জন্য এভেইলএবল মডেলের নামগুলো এক্সেস করতে,",

src/lib/i18n/locales/ca-ES/translation.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"Brave Search API Key": "Clau API de Brave Search",
127127
"By {{name}}": "Per {{name}}",
128128
"Bypass SSL verification for Websites": "Desactivar la verificació SSL per a l'accés a Internet",
129+
"Calendar": "",
129130
"Call": "Trucada",
130131
"Call feature is not supported when using Web STT engine": "La funció de trucada no s'admet quan s'utilitza el motor Web STT",
131132
"Camera": "Càmera",
@@ -386,6 +387,8 @@
386387
"Enter SearchApi Engine": "Introdueix el motor SearchApi",
387388
"Enter Searxng Query URL": "Introdueix l'URL de consulta de Searxng",
388389
"Enter Seed": "Introdueix la llavor",
390+
"Enter SerpApi API Key": "",
391+
"Enter SerpApi Engine": "",
389392
"Enter Serper API Key": "Introdueix la clau API Serper",
390393
"Enter Serply API Key": "Introdueix la clau API Serply",
391394
"Enter Serpstack API Key": "Introdueix la clau API Serpstack",
@@ -513,6 +516,7 @@
513516
"Hex Color": "Color hexadecimal",
514517
"Hex Color - Leave empty for default color": "Color hexadecimal - Deixar buit per a color per defecte",
515518
"Hide": "Amaga",
519+
"Home": "",
516520
"Host": "Servidor",
517521
"How can I help you today?": "Com et puc ajudar avui?",
518522
"How would you rate this response?": "Com avaluaries aquesta resposta?",
@@ -866,6 +870,8 @@
866870
"Send message": "Enviar missatge",
867871
"Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.": "Envia `stream_options: { include_usage: true }` a la sol·licitud.\nEls proveïdors compatibles retornaran la informació d'ús del token a la resposta quan s'estableixi.",
868872
"September": "Setembre",
873+
"SerpApi API Key": "",
874+
"SerpApi Engine": "",
869875
"Serper API Key": "Clau API de Serper",
870876
"Serply API Key": "Clau API de Serply",
871877
"Serpstack API Key": "Clau API de Serpstack",
@@ -978,6 +984,7 @@
978984
"Title (e.g. Tell me a fun fact)": "Títol (p. ex. Digues-me quelcom divertit)",
979985
"Title Auto-Generation": "Generació automàtica de títol",
980986
"Title cannot be an empty string.": "El títol no pot ser una cadena buida.",
987+
"Title Generation": "",
981988
"Title Generation Prompt": "Indicació de generació de títol",
982989
"TLS": "TLS",
983990
"To access the available model names for downloading,": "Per accedir als noms dels models disponibles per descarregar,",

src/lib/i18n/locales/ceb-PH/translation.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"Brave Search API Key": "",
127127
"By {{name}}": "",
128128
"Bypass SSL verification for Websites": "",
129+
"Calendar": "",
129130
"Call": "",
130131
"Call feature is not supported when using Web STT engine": "",
131132
"Camera": "",
@@ -335,7 +336,6 @@
335336
"Embedding model set to \"{{embedding_model}}\"": "",
336337
"Enable API Key": "",
337338
"Enable autocomplete generation for chat messages": "",
338-
"Enable title generation for chat messages": "",
339339
"Enable Code Interpreter": "",
340340
"Enable Community Sharing": "",
341341
"Enable Google Drive": "",
@@ -387,6 +387,8 @@
387387
"Enter SearchApi Engine": "",
388388
"Enter Searxng Query URL": "",
389389
"Enter Seed": "",
390+
"Enter SerpApi API Key": "",
391+
"Enter SerpApi Engine": "",
390392
"Enter Serper API Key": "",
391393
"Enter Serply API Key": "",
392394
"Enter Serpstack API Key": "",
@@ -514,6 +516,7 @@
514516
"Hex Color": "",
515517
"Hex Color - Leave empty for default color": "",
516518
"Hide": "Tagoa",
519+
"Home": "",
517520
"Host": "",
518521
"How can I help you today?": "Unsaon nako pagtabang kanimo karon?",
519522
"How would you rate this response?": "",
@@ -867,6 +870,8 @@
867870
"Send message": "Magpadala ug mensahe",
868871
"Sends `stream_options: { include_usage: true }` in the request.\nSupported providers will return token usage information in the response when set.": "",
869872
"September": "",
873+
"SerpApi API Key": "",
874+
"SerpApi Engine": "",
870875
"Serper API Key": "",
871876
"Serply API Key": "",
872877
"Serpstack API Key": "",
@@ -929,7 +934,6 @@
929934
"System": "Sistema",
930935
"System Instructions": "",
931936
"System Prompt": "Madasig nga Sistema",
932-
"Title Generation": "",
933937
"Tags Generation": "",
934938
"Tags Generation Prompt": "",
935939
"Tail free sampling is used to reduce the impact of less probable tokens from the output. A higher value (e.g., 2.0) will reduce the impact more, while a value of 1.0 disables this setting. (default: 1)": "",
@@ -980,6 +984,7 @@
980984
"Title (e.g. Tell me a fun fact)": "",
981985
"Title Auto-Generation": "Awtomatikong paghimo sa titulo",
982986
"Title cannot be an empty string.": "",
987+
"Title Generation": "",
983988
"Title Generation Prompt": "Madasig nga henerasyon sa titulo",
984989
"TLS": "",
985990
"To access the available model names for downloading,": "Aron ma-access ang mga ngalan sa modelo nga ma-download,",

0 commit comments

Comments
 (0)