Skip to content

Commit 9f27d77

Browse files
committed
chore: format
1 parent 7c68a42 commit 9f27d77

File tree

9 files changed

+310
-264
lines changed

9 files changed

+310
-264
lines changed

backend/open_webui/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,9 +1186,7 @@ async def get_app_config(request: Request):
11861186
"client_id": GOOGLE_DRIVE_CLIENT_ID.value,
11871187
"api_key": GOOGLE_DRIVE_API_KEY.value,
11881188
},
1189-
"onedrive": {
1190-
"client_id": ONEDRIVE_CLIENT_ID.value
1191-
}
1189+
"onedrive": {"client_id": ONEDRIVE_CLIENT_ID.value},
11921190
}
11931191
if user is not None
11941192
else {}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,6 @@
667667
</div>
668668
</div>
669669

670-
671670
<hr class=" border-gray-100 dark:border-gray-850" />
672671

673672
<div class=" ">

src/lib/components/chat/ChatPlaceholder.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@
127127
<div class=" w-full font-primary" in:fade={{ duration: 200, delay: 300 }}>
128128
<Suggestions
129129
className="grid grid-cols-2"
130-
suggestionPrompts={
131-
atSelectedModel?.info?.meta?.suggestion_prompts ??
130+
suggestionPrompts={atSelectedModel?.info?.meta?.suggestion_prompts ??
132131
models[selectedModelIdx]?.info?.meta?.suggestion_prompts ??
133132
$config?.default_prompt_suggestions ??
134133
[]}

src/lib/components/chat/MessageInput/InputMenu.svelte

Lines changed: 70 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
import { config, user, tools as _tools, mobile } from '$lib/stores';
77
import { createPicker } from '$lib/utils/google-drive-picker';
8-
8+
99
import { getTools } from '$lib/apis/tools';
1010
1111
import Dropdown from '$lib/components/common/Dropdown.svelte';
@@ -236,31 +236,82 @@
236236
}}
237237
>
238238
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="w-5 h-5" fill="none">
239-
<mask id="mask0_87_7796" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="6" width="32" height="20">
240-
<path d="M7.82979 26C3.50549 26 0 22.5675 0 18.3333C0 14.1921 3.35322 10.8179 7.54613 10.6716C9.27535 7.87166 12.4144 6 16 6C20.6308 6 24.5169 9.12183 25.5829 13.3335C29.1316 13.3603 32 16.1855 32 19.6667C32 23.0527 29 26 25.8723 25.9914L7.82979 26Z" fill="#C4C4C4"/>
239+
<mask
240+
id="mask0_87_7796"
241+
style="mask-type:alpha"
242+
maskUnits="userSpaceOnUse"
243+
x="0"
244+
y="6"
245+
width="32"
246+
height="20"
247+
>
248+
<path
249+
d="M7.82979 26C3.50549 26 0 22.5675 0 18.3333C0 14.1921 3.35322 10.8179 7.54613 10.6716C9.27535 7.87166 12.4144 6 16 6C20.6308 6 24.5169 9.12183 25.5829 13.3335C29.1316 13.3603 32 16.1855 32 19.6667C32 23.0527 29 26 25.8723 25.9914L7.82979 26Z"
250+
fill="#C4C4C4"
251+
/>
241252
</mask>
242253
<g mask="url(#mask0_87_7796)">
243-
<path d="M7.83017 26.0001C5.37824 26.0001 3.18957 24.8966 1.75391 23.1691L18.0429 16.3335L30.7089 23.4647C29.5926 24.9211 27.9066 26.0001 26.0004 25.9915C23.1254 26.0001 12.0629 26.0001 7.83017 26.0001Z" fill="url(#paint0_linear_87_7796)"/>
244-
<path d="M25.5785 13.3149L18.043 16.3334L30.709 23.4647C31.5199 22.4065 32.0004 21.0916 32.0004 19.6669C32.0004 16.1857 29.1321 13.3605 25.5833 13.3337C25.5817 13.3274 25.5801 13.3212 25.5785 13.3149Z" fill="url(#paint1_linear_87_7796)"/>
245-
<path d="M7.06445 10.7028L18.0423 16.3333L25.5779 13.3148C24.5051 9.11261 20.6237 6 15.9997 6C12.4141 6 9.27508 7.87166 7.54586 10.6716C7.3841 10.6773 7.22358 10.6877 7.06445 10.7028Z" fill="url(#paint2_linear_87_7796)"/>
246-
<path d="M1.7535 23.1687L18.0425 16.3331L7.06471 10.7026C3.09947 11.0792 0 14.3517 0 18.3331C0 20.1665 0.657197 21.8495 1.7535 23.1687Z" fill="url(#paint3_linear_87_7796)"/>
254+
<path
255+
d="M7.83017 26.0001C5.37824 26.0001 3.18957 24.8966 1.75391 23.1691L18.0429 16.3335L30.7089 23.4647C29.5926 24.9211 27.9066 26.0001 26.0004 25.9915C23.1254 26.0001 12.0629 26.0001 7.83017 26.0001Z"
256+
fill="url(#paint0_linear_87_7796)"
257+
/>
258+
<path
259+
d="M25.5785 13.3149L18.043 16.3334L30.709 23.4647C31.5199 22.4065 32.0004 21.0916 32.0004 19.6669C32.0004 16.1857 29.1321 13.3605 25.5833 13.3337C25.5817 13.3274 25.5801 13.3212 25.5785 13.3149Z"
260+
fill="url(#paint1_linear_87_7796)"
261+
/>
262+
<path
263+
d="M7.06445 10.7028L18.0423 16.3333L25.5779 13.3148C24.5051 9.11261 20.6237 6 15.9997 6C12.4141 6 9.27508 7.87166 7.54586 10.6716C7.3841 10.6773 7.22358 10.6877 7.06445 10.7028Z"
264+
fill="url(#paint2_linear_87_7796)"
265+
/>
266+
<path
267+
d="M1.7535 23.1687L18.0425 16.3331L7.06471 10.7026C3.09947 11.0792 0 14.3517 0 18.3331C0 20.1665 0.657197 21.8495 1.7535 23.1687Z"
268+
fill="url(#paint3_linear_87_7796)"
269+
/>
247270
</g>
248271
<defs>
249-
<linearGradient id="paint0_linear_87_7796" x1="4.42591" y1="24.6668" x2="27.2309" y2="23.2764" gradientUnits="userSpaceOnUse">
250-
<stop stop-color="#2086B8"/>
251-
<stop offset="1" stop-color="#46D3F6"/>
272+
<linearGradient
273+
id="paint0_linear_87_7796"
274+
x1="4.42591"
275+
y1="24.6668"
276+
x2="27.2309"
277+
y2="23.2764"
278+
gradientUnits="userSpaceOnUse"
279+
>
280+
<stop stop-color="#2086B8" />
281+
<stop offset="1" stop-color="#46D3F6" />
252282
</linearGradient>
253-
<linearGradient id="paint1_linear_87_7796" x1="23.8302" y1="19.6668" x2="30.2108" y2="15.2082" gradientUnits="userSpaceOnUse">
254-
<stop stop-color="#1694DB"/>
255-
<stop offset="1" stop-color="#62C3FE"/>
283+
<linearGradient
284+
id="paint1_linear_87_7796"
285+
x1="23.8302"
286+
y1="19.6668"
287+
x2="30.2108"
288+
y2="15.2082"
289+
gradientUnits="userSpaceOnUse"
290+
>
291+
<stop stop-color="#1694DB" />
292+
<stop offset="1" stop-color="#62C3FE" />
256293
</linearGradient>
257-
<linearGradient id="paint2_linear_87_7796" x1="8.51037" y1="7.33333" x2="23.3335" y2="15.9348" gradientUnits="userSpaceOnUse">
258-
<stop stop-color="#0D3D78"/>
259-
<stop offset="1" stop-color="#063B83"/>
294+
<linearGradient
295+
id="paint2_linear_87_7796"
296+
x1="8.51037"
297+
y1="7.33333"
298+
x2="23.3335"
299+
y2="15.9348"
300+
gradientUnits="userSpaceOnUse"
301+
>
302+
<stop stop-color="#0D3D78" />
303+
<stop offset="1" stop-color="#063B83" />
260304
</linearGradient>
261-
<linearGradient id="paint3_linear_87_7796" x1="-0.340429" y1="19.9998" x2="14.5634" y2="14.4649" gradientUnits="userSpaceOnUse">
262-
<stop stop-color="#16589B"/>
263-
<stop offset="1" stop-color="#1464B7"/>
305+
<linearGradient
306+
id="paint3_linear_87_7796"
307+
x1="-0.340429"
308+
y1="19.9998"
309+
x2="14.5634"
310+
y2="14.4649"
311+
gradientUnits="userSpaceOnUse"
312+
>
313+
<stop stop-color="#16589B" />
314+
<stop offset="1" stop-color="#1464B7" />
264315
</linearGradient>
265316
</defs>
266317
</svg>

src/lib/components/chat/Messages.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
{#if Object.keys(history?.messages ?? {}).length == 0}
351351
<ChatPlaceholder
352352
modelIds={selectedModels}
353-
atSelectedModel={atSelectedModel}
353+
{atSelectedModel}
354354
submitPrompt={async (p) => {
355355
let text = p;
356356

src/lib/components/chat/Placeholder.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@
213213
<div class="mx-auto max-w-2xl font-primary" in:fade={{ duration: 200, delay: 200 }}>
214214
<div class="mx-5">
215215
<Suggestions
216-
suggestionPrompts={
217-
atSelectedModel?.info?.meta?.suggestion_prompts ??
216+
suggestionPrompts={atSelectedModel?.info?.meta?.suggestion_prompts ??
218217
models[selectedModelIdx]?.info?.meta?.suggestion_prompts ??
219218
$config?.default_prompt_suggestions ??
220219
[]}

src/lib/i18n/locales/ka-GE/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
"Loading Kokoro.js...": "",
623623
"Local": "ლოკალური",
624624
"Local Models": "ლოკალური მოდელები",
625-
"Location access not allowed": "",
625+
"Location access not allowed": "",
626626
"Lost": "წაგება",
627627
"LTR": "LTR",
628628
"Made by Open WebUI Community": "შექმნილია OpenWebUI საზოგადოების მიერ",
@@ -726,7 +726,7 @@
726726
"Ollama API settings updated": "",
727727
"Ollama Version": "Ollama ვერსია",
728728
"On": "ჩართული",
729-
"OneDrive": "",
729+
"OneDrive": "",
730730
"Only alphanumeric characters and hyphens are allowed": "",
731731
"Only alphanumeric characters and hyphens are allowed in the command string.": "ბრძანების სტრიქონში დაშვებულია, მხოლოდ, ალფარიცხვითი სიმბოლოები და ტირეები.",
732732
"Only collections can be edited, create a new knowledge base to edit/add documents.": "",

src/lib/utils/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ export const generateInitialsImage = (name) => {
279279
const initials =
280280
sanitizedName.length > 0
281281
? sanitizedName[0] +
282-
(sanitizedName.split(' ').length > 1
283-
? sanitizedName[sanitizedName.lastIndexOf(' ') + 1]
284-
: '')
282+
(sanitizedName.split(' ').length > 1
283+
? sanitizedName[sanitizedName.lastIndexOf(' ') + 1]
284+
: '')
285285
: '';
286286

287287
ctx.fillText(initials.toUpperCase(), canvas.width / 2, canvas.height / 2);
@@ -348,10 +348,10 @@ export const compareVersion = (latest, current) => {
348348
return current === '0.0.0'
349349
? false
350350
: current.localeCompare(latest, undefined, {
351-
numeric: true,
352-
sensitivity: 'case',
353-
caseFirst: 'upper'
354-
}) < 0;
351+
numeric: true,
352+
sensitivity: 'case',
353+
caseFirst: 'upper'
354+
}) < 0;
355355
};
356356

357357
export const findWordIndices = (text) => {

0 commit comments

Comments
 (0)