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
86aa2ca6
Unverified
Commit
86aa2ca6
authored
Mar 31, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Mar 31, 2024
Browse files
Merge pull request #1363 from open-webui/dev
fix
parents
3b0cb794
1d7ca440
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1540 additions
and
1539 deletions
+1540
-1539
.github/workflows/format-backend.yaml
.github/workflows/format-backend.yaml
+21
-11
.github/workflows/format-build-frontend.yaml
.github/workflows/format-build-frontend.yaml
+27
-16
backend/data/config.json
backend/data/config.json
+23
-35
backend/main.py
backend/main.py
+1
-1
package-lock.json
package-lock.json
+2
-2
package.json
package.json
+1
-2
src/lib/i18n/locales/ca-ES/translation.json
src/lib/i18n/locales/ca-ES/translation.json
+1
-1
src/lib/i18n/locales/it-IT/translation.json
src/lib/i18n/locales/it-IT/translation.json
+363
-363
src/lib/i18n/locales/ja-JP/translation.json
src/lib/i18n/locales/ja-JP/translation.json
+363
-363
src/lib/i18n/locales/languages.json
src/lib/i18n/locales/languages.json
+1
-1
src/lib/i18n/locales/pt-PT/translation.json
src/lib/i18n/locales/pt-PT/translation.json
+363
-363
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
+362
-362
src/tailwind.css
src/tailwind.css
+5
-4
static/manifest.json
static/manifest.json
+1
-1
svelte.config.js
svelte.config.js
+5
-7
test.json
test.json
+0
-6
No files found.
.github/workflows/format-backend.yaml
View file @
86aa2ca6
name
:
Python CI
on
:
push
:
branches
:
[
'
main'
]
branches
:
-
main
-
dev
pull_request
:
branches
:
-
main
-
dev
jobs
:
build
:
name
:
'
Format
Backend'
env
:
PUBLIC_API_BASE_URL
:
'
'
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node
-version
:
-
latest
python
-version
:
[
3.11
]
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Use Python
uses
:
actions/setup-python@v4
-
name
:
Use Bun
uses
:
oven-sh/setup-bun@v1
-
name
:
Set up Python
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install yapf
pip install black
-
name
:
Format backend
run
:
bun run format:backend
run
:
black . --exclude "/venv/"
-
name
:
Check for changes after format
run
:
git diff --exit-code
.github/workflows/format-build-frontend.yaml
View file @
86aa2ca6
name
:
Bun CI
name
:
Frontend Build
on
:
push
:
branches
:
[
'
main'
]
branches
:
-
main
-
dev
pull_request
:
branches
:
-
main
-
dev
jobs
:
build
:
name
:
'
Format
&
Build
Frontend'
env
:
PUBLIC_API_BASE_URL
:
'
'
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Use Bun
uses
:
oven-sh/setup-bun@v1
-
run
:
bun --version
-
name
:
Install frontend dependencies
run
:
bun install
-
name
:
Format frontend
run
:
bun run format
-
name
:
Check for changes after format
-
name
:
Checkout Repository
uses
:
actions/checkout@v4
-
name
:
Setup Node.js
uses
:
actions/setup-node@v3
with
:
node-version
:
'
20'
# Or specify any other version you want to use
-
name
:
Install Dependencies
run
:
npm install
-
name
:
Format Frontend
run
:
npm run format
-
name
:
Check for Changes After Format
run
:
git diff --exit-code
-
name
:
Build frontend
if
:
always()
run
:
bun
run build
-
name
:
Build Frontend
run
:
npm
run build
backend/data/config.json
View file @
86aa2ca6
...
...
@@ -4,31 +4,19 @@
"default_locale"
:
"en-US"
,
"prompt_suggestions"
:
[
{
"title"
:
[
"Help me study"
,
"vocabulary for a college entrance exam"
],
"title"
:
[
"Help me study"
,
"vocabulary for a college entrance exam"
],
"content"
:
"Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
},
{
"title"
:
[
"Give me ideas"
,
"for what to do with my kids' art"
],
"title"
:
[
"Give me ideas"
,
"for what to do with my kids' art"
],
"content"
:
"What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."
},
{
"title"
:
[
"Tell me a fun fact"
,
"about the Roman Empire"
],
"title"
:
[
"Tell me a fun fact"
,
"about the Roman Empire"
],
"content"
:
"Tell me a random fun fact about the Roman Empire"
},
{
"title"
:
[
"Show me a code snippet"
,
"of a website's sticky header"
],
"title"
:
[
"Show me a code snippet"
,
"of a website's sticky header"
],
"content"
:
"Show me a code snippet of a website's sticky header in CSS and JavaScript."
}
]
...
...
backend/main.py
View file @
86aa2ca6
...
...
@@ -170,7 +170,7 @@ async def get_app_config():
"version"
:
VERSION
,
"default_locale"
:
(
CONFIG_DATA
[
"ui"
][
"default_locale"
]
if
"default_locale"
in
CONFIG_DATA
[
"ui"
]
if
"ui"
in
CONFIG_DATA
and
"default_locale"
in
CONFIG_DATA
[
"ui"
]
else
"en-US"
),
"images"
:
images_app
.
state
.
ENABLED
,
...
...
package-lock.json
View file @
86aa2ca6
{
"name"
:
"open-webui"
,
"version"
:
"0.1.11
4
"
,
"version"
:
"0.1.11
6
"
,
"lockfileVersion"
:
3
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"name"
:
"open-webui"
,
"version"
:
"0.1.11
4
"
,
"version"
:
"0.1.11
6
"
,
"dependencies"
:
{
"@sveltejs/adapter-node"
:
"^1.3.1"
,
"async"
:
"^3.2.5"
,
...
...
package.json
View file @
86aa2ca6
...
...
@@ -13,7 +13,6 @@
"lint:types"
:
"npm run check"
,
"lint:backend"
:
"pylint backend/"
,
"format"
:
"prettier --plugin-search-dir --write '**/*.{js,ts,svelte,css,md,html,json}'"
,
"format:backend"
:
"yapf --recursive backend -p -i"
,
"i18n:parse"
:
"i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'"
},
"devDependencies"
:
{
...
...
src/lib/i18n/locales/ca-ES/translation.json
View file @
86aa2ca6
src/lib/i18n/locales/it-IT/translation.json
View file @
86aa2ca6
...
...
@@ -360,4 +360,4 @@
"You"
:
"Tu"
,
"You're a helpful assistant."
:
"Sei un assistente utile."
,
"You're now logged in."
:
"Ora hai effettuato l'accesso."
}
\ No newline at end of file
}
src/lib/i18n/locales/ja-JP/translation.json
View file @
86aa2ca6
...
...
@@ -360,4 +360,4 @@
"You"
:
"あなた"
,
"You're a helpful assistant."
:
"あなたは役に立つアシスタントです。"
,
"You're now logged in."
:
"ログインしました。"
}
\ No newline at end of file
}
src/lib/i18n/locales/languages.json
View file @
86aa2ca6
src/lib/i18n/locales/pt-PT/translation.json
View file @
86aa2ca6
src/lib/i18n/locales/ru-RU/translation.json
View file @
86aa2ca6
src/lib/i18n/locales/vi-VN/translation.json
View file @
86aa2ca6
src/tailwind.css
View file @
86aa2ca6
...
...
@@ -3,7 +3,8 @@
@tailwind
utilities
;
@layer
base
{
html
,
pre
{
html
,
pre
{
font-family
:
-apple-system
,
'Arimo'
,
ui-sans-serif
,
system-ui
,
'Segoe UI'
,
Roboto
,
Ubuntu
,
Cantarell
,
'Noto Sans'
,
sans-serif
,
'Helvetica Neue'
,
Arial
,
'Apple Color Emoji'
,
'Segoe UI Emoji'
,
'Segoe UI Symbol'
,
'Noto Color Emoji'
;
...
...
static/manifest.json
View file @
86aa2ca6
svelte.config.js
View file @
86aa2ca6
...
...
@@ -19,12 +19,10 @@ const config = {
},
onwarn
:
(
warning
,
handler
)
=>
{
const
{
code
,
_
}
=
warning
;
if
(
code
===
"
css-unused-selector
"
)
return
;
if
(
code
===
'
css-unused-selector
'
)
return
;
handler
(
warning
);
},
}
};
export
default
config
;
test.json
deleted
100644 → 0
View file @
3b0cb794
{
"model_name"
:
"string"
,
"litellm_params"
:
{
"model"
:
"ollama/mistral"
}
}
\ No newline at end of file
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