Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
22c50f62
Unverified
Commit
22c50f62
authored
Apr 20, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Apr 20, 2024
Browse files
Merge pull request #1631 from open-webui/dev
0.1.120
parents
e0ebd7ae
eefe0145
Changes
50
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
26 deletions
+54
-26
src/lib/i18n/locales/pl-pl/translation.json
src/lib/i18n/locales/pl-pl/translation.json
+2
-2
src/lib/i18n/locales/pt-BR/translation.json
src/lib/i18n/locales/pt-BR/translation.json
+1
-1
src/lib/i18n/locales/pt-PT/translation.json
src/lib/i18n/locales/pt-PT/translation.json
+3
-3
src/lib/i18n/locales/ru-RU/translation.json
src/lib/i18n/locales/ru-RU/translation.json
+1
-1
src/lib/i18n/locales/vi-VN/translation.json
src/lib/i18n/locales/vi-VN/translation.json
+16
-1
src/lib/utils/index.ts
src/lib/utils/index.ts
+17
-12
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+5
-3
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+5
-3
static/favicon.png
static/favicon.png
+0
-0
static/logo.svg
static/logo.svg
+4
-0
No files found.
src/lib/i18n/locales/pl-pl/translation.json
View file @
22c50f62
...
@@ -86,9 +86,9 @@
...
@@ -86,9 +86,9 @@
"Customize Ollama models for a specific purpose"
:
"Dostosuj modele Ollama do określonego celu"
,
"Customize Ollama models for a specific purpose"
:
"Dostosuj modele Ollama do określonego celu"
,
"Dark"
:
"Ciemny"
,
"Dark"
:
"Ciemny"
,
"Database"
:
"Baza danych"
,
"Database"
:
"Baza danych"
,
"DD/MM/YYYY HH:mm"
:
"DD/MM/
RRRR GG:MM
"
,
"DD/MM/YYYY HH:mm"
:
"DD/MM/
YYYY HH:mm
"
,
"Default"
:
"Domyślny"
,
"Default"
:
"Domyślny"
,
"Default (Automatic1111)"
:
"Domyślny (Automat
yczny
1111)"
,
"Default (Automatic1111)"
:
"Domyślny (Automat
ic
1111)"
,
"Default (Web API)"
:
"Domyślny (Interfejs API)"
,
"Default (Web API)"
:
"Domyślny (Interfejs API)"
,
"Default model updated"
:
"Domyślny model zaktualizowany"
,
"Default model updated"
:
"Domyślny model zaktualizowany"
,
"Default Prompt Suggestions"
:
"Domyślne sugestie promptów"
,
"Default Prompt Suggestions"
:
"Domyślne sugestie promptów"
,
...
...
src/lib/i18n/locales/pt-BR/translation.json
View file @
22c50f62
{
{
"'s', 'm', 'h', 'd', 'w' or '-1' for no expiration."
:
"'s', 'm', 'h', 'd', '
s
' ou '-1' para não expirar."
,
"'s', 'm', 'h', 'd', 'w' or '-1' for no expiration."
:
"'s', 'm', 'h', 'd', '
w
' ou '-1' para não expirar."
,
"(Beta)"
:
"(Beta)"
,
"(Beta)"
:
"(Beta)"
,
"(e.g. `sh webui.sh --api`)"
:
"(por exemplo, `sh webui.sh --api`)"
,
"(e.g. `sh webui.sh --api`)"
:
"(por exemplo, `sh webui.sh --api`)"
,
"(latest)"
:
"(mais recente)"
,
"(latest)"
:
"(mais recente)"
,
...
...
src/lib/i18n/locales/pt-PT/translation.json
View file @
22c50f62
{
{
"'s', 'm', 'h', 'd', 'w' or '-1' for no expiration."
:
"'s', 'm', 'h', 'd', '
s
' ou '-1' para nenhuma expiração."
,
"'s', 'm', 'h', 'd', 'w' or '-1' for no expiration."
:
"'s', 'm', 'h', 'd', '
w
' ou '-1' para nenhuma expiração."
,
"(Beta)"
:
"(Beta)"
,
"(Beta)"
:
"(Beta)"
,
"(e.g. `sh webui.sh --api`)"
:
"(por exemplo, `sh webui.sh --api`)"
,
"(e.g. `sh webui.sh --api`)"
:
"(por exemplo, `sh webui.sh --api`)"
,
"(latest)"
:
"(mais recente)"
,
"(latest)"
:
"(mais recente)"
,
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
"Customize Ollama models for a specific purpose"
:
"Personalize os modelos Ollama para um propósito específico"
,
"Customize Ollama models for a specific purpose"
:
"Personalize os modelos Ollama para um propósito específico"
,
"Dark"
:
"Escuro"
,
"Dark"
:
"Escuro"
,
"Database"
:
"Banco de dados"
,
"Database"
:
"Banco de dados"
,
"DD/MM/YYYY HH:mm"
:
"DD/MM/
AAAA
HH:mm"
,
"DD/MM/YYYY HH:mm"
:
"DD/MM/
YYYY
HH:mm"
,
"Default"
:
"Padrão"
,
"Default"
:
"Padrão"
,
"Default (Automatic1111)"
:
"Padrão (Automatic1111)"
,
"Default (Automatic1111)"
:
"Padrão (Automatic1111)"
,
"Default (Web API)"
:
"Padrão (API Web)"
,
"Default (Web API)"
:
"Padrão (API Web)"
,
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
"Mirostat"
:
"Mirostat"
,
"Mirostat"
:
"Mirostat"
,
"Mirostat Eta"
:
"Mirostat Eta"
,
"Mirostat Eta"
:
"Mirostat Eta"
,
"Mirostat Tau"
:
"Mirostat Tau"
,
"Mirostat Tau"
:
"Mirostat Tau"
,
"MMMM DD, YYYY"
:
"
MMMM DD, AAAA
"
,
"MMMM DD, YYYY"
:
"
DD/MM/YYYY
"
,
"Model '{{modelName}}' has been successfully downloaded."
:
"O modelo '{{modelName}}' foi baixado com sucesso."
,
"Model '{{modelName}}' has been successfully downloaded."
:
"O modelo '{{modelName}}' foi baixado com sucesso."
,
"Model '{{modelTag}}' is already in queue for downloading."
:
"O modelo '{{modelTag}}' já está na fila para download."
,
"Model '{{modelTag}}' is already in queue for downloading."
:
"O modelo '{{modelTag}}' já está na fila para download."
,
"Model {{modelId}} not found"
:
"Modelo {{modelId}} não encontrado"
,
"Model {{modelId}} not found"
:
"Modelo {{modelId}} não encontrado"
,
...
...
src/lib/i18n/locales/ru-RU/translation.json
View file @
22c50f62
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
"Database"
:
"База данных"
,
"Database"
:
"База данных"
,
"DD/MM/YYYY HH:mm"
:
"DD/MM/YYYY HH:mm"
,
"DD/MM/YYYY HH:mm"
:
"DD/MM/YYYY HH:mm"
,
"Default"
:
"По умолчанию"
,
"Default"
:
"По умолчанию"
,
"Default (Automatic1111)"
:
"По умолчанию (
Автоматический
1111)"
,
"Default (Automatic1111)"
:
"По умолчанию (
Automatic
1111)"
,
"Default (Web API)"
:
"По умолчанию (Web API)"
,
"Default (Web API)"
:
"По умолчанию (Web API)"
,
"Default model updated"
:
"Модель по умолчанию обновлена"
,
"Default model updated"
:
"Модель по умолчанию обновлена"
,
"Default Prompt Suggestions"
:
"Предложения промтов по умолчанию"
,
"Default Prompt Suggestions"
:
"Предложения промтов по умолчанию"
,
...
...
src/lib/i18n/locales/vi-VN/translation.json
View file @
22c50f62
...
@@ -359,5 +359,20 @@
...
@@ -359,5 +359,20 @@
"Write a summary in 50 words that summarizes [topic or keyword]."
:
"Viết một tóm tắt trong vòng 50 từ cho [chủ đề hoặc từ khóa]."
,
"Write a summary in 50 words that summarizes [topic or keyword]."
:
"Viết một tóm tắt trong vòng 50 từ cho [chủ đề hoặc từ khóa]."
,
"You"
:
"Bạn"
,
"You"
:
"Bạn"
,
"You're a helpful assistant."
:
"Bạn là một trợ lý hữu ích."
,
"You're a helpful assistant."
:
"Bạn là một trợ lý hữu ích."
,
"You're now logged in."
:
"Bạn đã đăng nhập."
"You're now logged in."
:
"Bạn đã đăng nhập."
,
"Accurate information"
:
"Thông tin chính xác"
,
"Followed instructions perfectly"
:
"Tuân theo chỉ dẫn một cách hoàn hảo"
,
"Showcased creativity"
:
"Thể hiện sự sáng tạo"
,
"Positive attitude"
:
"Thể hiện thái độ tích cực"
,
"Attention to detail"
:
"Có sự chú ý đến chi tiết của vấn đề"
,
"Thorough explanation"
:
"Giải thích kỹ lưỡng"
,
"Don't like the style"
:
"Không thích phong cách trả lời"
,
"Not factually correct"
:
"Không chính xác so với thực tế"
,
"Didn't fully follow instructions"
:
"Không tuân theo chỉ dẫn một cách đầy đủ"
,
"Refused when it shouldn't have"
:
"Từ chối trả lời mà nhẽ không nên làm vậy"
,
"Being lazy"
:
"Lười biếng"
,
"Other"
:
"Khác"
,
"Thanks for your feedback!"
:
"Cám ơn bạn đã gửi phản hồi!"
,
"Tell us more:"
:
"Hãy cho chúng tôi hiểu thêm về chất lượng của câu trả lời:"
,
"Feel free to add specific details"
:
"Mô tả chi tiết về chất lượng của câu hỏi và phương án trả lời"
}
}
src/lib/utils/index.ts
View file @
22c50f62
...
@@ -20,9 +20,7 @@ export const getModels = async (token: string) => {
...
@@ -20,9 +20,7 @@ export const getModels = async (token: string) => {
})
})
]);
]);
models
=
models
models
=
models
.
filter
((
models
)
=>
models
).
reduce
((
a
,
e
,
i
,
arr
)
=>
a
.
concat
(
e
),
[]);
.
filter
((
models
)
=>
models
)
.
reduce
((
a
,
e
,
i
,
arr
)
=>
a
.
concat
(
e
,
...(
i
<
arr
.
length
-
1
?
[{
name
:
'
hr
'
}]
:
[])),
[]);
return
models
;
return
models
;
};
};
...
@@ -187,7 +185,8 @@ export const generateInitialsImage = (name) => {
...
@@ -187,7 +185,8 @@ export const generateInitialsImage = (name) => {
return
canvas
.
toDataURL
();
return
canvas
.
toDataURL
();
};
};
export
const
copyToClipboard
=
(
text
)
=>
{
export
const
copyToClipboard
=
async
(
text
)
=>
{
let
result
=
false
;
if
(
!
navigator
.
clipboard
)
{
if
(
!
navigator
.
clipboard
)
{
const
textArea
=
document
.
createElement
(
'
textarea
'
);
const
textArea
=
document
.
createElement
(
'
textarea
'
);
textArea
.
value
=
text
;
textArea
.
value
=
text
;
...
@@ -205,21 +204,27 @@ export const copyToClipboard = (text) => {
...
@@ -205,21 +204,27 @@ export const copyToClipboard = (text) => {
const
successful
=
document
.
execCommand
(
'
copy
'
);
const
successful
=
document
.
execCommand
(
'
copy
'
);
const
msg
=
successful
?
'
successful
'
:
'
unsuccessful
'
;
const
msg
=
successful
?
'
successful
'
:
'
unsuccessful
'
;
console
.
log
(
'
Fallback: Copying text command was
'
+
msg
);
console
.
log
(
'
Fallback: Copying text command was
'
+
msg
);
result
=
true
;
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
error
(
'
Fallback: Oops, unable to copy
'
,
err
);
console
.
error
(
'
Fallback: Oops, unable to copy
'
,
err
);
}
}
document
.
body
.
removeChild
(
textArea
);
document
.
body
.
removeChild
(
textArea
);
return
;
return
result
;
}
}
navigator
.
clipboard
.
writeText
(
text
).
then
(
function
()
{
result
=
await
navigator
.
clipboard
.
writeText
(
text
)
.
then
(()
=>
{
console
.
log
(
'
Async: Copying to clipboard was successful!
'
);
console
.
log
(
'
Async: Copying to clipboard was successful!
'
);
},
return
true
;
function
(
err
)
{
})
console
.
error
(
'
Async: Could not copy text:
'
,
err
);
.
catch
((
error
)
=>
{
}
console
.
error
(
'
Async: Could not copy text:
'
,
error
);
);
return
false
;
});
return
result
;
};
};
export
const
compareVersion
=
(
latest
,
current
)
=>
{
export
const
compareVersion
=
(
latest
,
current
)
=>
{
...
...
src/routes/(app)/+page.svelte
View file @
22c50f62
...
@@ -681,16 +681,18 @@
...
@@ -681,16 +681,18 @@
}
}
}
else
{
}
else
{
toast
.
error
(
toast
.
error
(
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, { provider: model })
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
.
name
??
model
.
id
})
);
);
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
}
}
responseMessage
.
error
=
true
;
responseMessage
.
error
=
true
;
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
responseMessage
.
done
=
true
;
responseMessage
.
done
=
true
;
messages
=
messages
;
messages
=
messages
;
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
22c50f62
...
@@ -693,16 +693,18 @@
...
@@ -693,16 +693,18 @@
}
}
}
else
{
}
else
{
toast
.
error
(
toast
.
error
(
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, { provider: model })
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
.
name
??
model
.
id
})
);
);
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
}
}
responseMessage
.
error
=
true
;
responseMessage
.
error
=
true
;
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
responseMessage
.
done
=
true
;
responseMessage
.
done
=
true
;
messages
=
messages
;
messages
=
messages
;
...
...
static/favicon.png
View replaced file @
e0ebd7ae
View file @
22c50f62
6.02 KB
|
W:
|
H:
10.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/logo.svg
0 → 100644
View file @
22c50f62
<svg
width=
"500"
height=
"500"
viewBox=
"0 0 500 500"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<rect
x=
"347.666"
y=
"139"
width=
"44.3349"
height=
"221.675"
fill=
"black"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M202.643 360.287C263.75 360.287 313.287 310.75 313.287 249.643C313.287 188.537 263.75 139 202.643 139C141.537 139 92 188.537 92 249.643C92 310.75 141.537 360.287 202.643 360.287ZM202.645 316.029C239.309 316.029 269.031 286.307 269.031 249.643C269.031 212.979 239.309 183.257 202.645 183.257C165.981 183.257 136.259 212.979 136.259 249.643C136.259 286.307 165.981 316.029 202.645 316.029Z"
fill=
"black"
/>
</svg>
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment