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
7eea3ef3
"mmdet3d/datasets/vscode:/vscode.git/clone" did not exist on "84569a413f19ed60f9cae2992e0cb769d4043c5d"
Commit
7eea3ef3
authored
Jan 23, 2024
by
Marclass
Browse files
copy list of file ext from backend to front end
parent
d517a3eb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
backend/apps/rag/main.py
backend/apps/rag/main.py
+2
-2
src/lib/constants.ts
src/lib/constants.ts
+8
-1
No files found.
backend/apps/rag/main.py
View file @
7eea3ef3
...
@@ -149,9 +149,9 @@ def store_doc(
...
@@ -149,9 +149,9 @@ def store_doc(
text_xml
=
[
"xml"
]
text_xml
=
[
"xml"
]
octet_markdown
=
[
"md"
]
octet_markdown
=
[
"md"
]
known_source_ext
=
[
known_source_ext
=
[
"go"
,
"py"
,
"java"
,
"sh"
,
"bat"
,
"ps1"
,
"cmd"
,
"js"
,
"go"
,
"py"
,
"java"
,
"sh"
,
"bat"
,
"ps1"
,
"cmd"
,
"js"
,
"ts"
,
"css"
,
"cpp"
,
"hpp"
,
"h"
,
"c"
,
"cs"
,
"sql"
,
"log"
,
"ini"
,
"css"
,
"cpp"
,
"hpp"
,
"h"
,
"c"
,
"cs"
,
"sql"
,
"log"
,
"ini"
,
"pl"
"pm"
,
"r"
,
"dart"
,
"dockerfile"
,
"env"
,
"php"
,
"hs"
,
"pl"
,
"pm"
,
"r"
,
"dart"
,
"dockerfile"
,
"env"
,
"php"
,
"hs"
,
"hsc"
,
"lua"
,
"nginxconf"
,
"conf"
,
"m"
,
"mm"
,
"plsql"
,
"perl"
,
"hsc"
,
"lua"
,
"nginxconf"
,
"conf"
,
"m"
,
"mm"
,
"plsql"
,
"perl"
,
"rb"
,
"rs"
,
"db2"
,
"scala"
,
"bash"
,
"swift"
,
"vue"
,
"svelte"
"rb"
,
"rs"
,
"db2"
,
"scala"
,
"bash"
,
"swift"
,
"vue"
,
"svelte"
]
]
...
...
src/lib/constants.ts
View file @
7eea3ef3
...
@@ -24,7 +24,14 @@ export const SUPPORTED_FILE_TYPE = [
...
@@ -24,7 +24,14 @@ export const SUPPORTED_FILE_TYPE = [
'
text/markdown
'
'
text/markdown
'
];
];
export
const
SUPPORTED_FILE_EXTENSIONS
=
[
'
md
'
,
'
rst
'
];
export
const
SUPPORTED_FILE_EXTENSIONS
=
[
'
md
'
,
'
rst
'
,
'
go
'
,
'
py
'
,
'
java
'
,
'
sh
'
,
'
bat
'
,
'
ps1
'
,
'
cmd
'
,
'
js
'
,
'
ts
'
,
'
css
'
,
'
cpp
'
,
'
hpp
'
,
'
h
'
,
'
c
'
,
'
cs
'
,
'
sql
'
,
'
log
'
,
'
ini
'
,
'
pl
'
,
'
pm
'
,
'
r
'
,
'
dart
'
,
'
dockerfile
'
,
'
env
'
,
'
php
'
,
'
hs
'
,
'
hsc
'
,
'
lua
'
,
'
nginxconf
'
,
'
conf
'
,
'
m
'
,
'
mm
'
,
'
plsql
'
,
'
perl
'
,
'
rb
'
,
'
rs
'
,
'
db2
'
,
'
scala
'
,
'
bash
'
,
'
swift
'
,
'
vue
'
,
'
svelte
'
,
'
doc
'
,
'
docx
'
,
'
pdf
'
,
'
csv
'
,
'
txt
'
];
// Source: https://kit.svelte.dev/docs/modules#$env-static-public
// Source: https://kit.svelte.dev/docs/modules#$env-static-public
// This feature, akin to $env/static/private, exclusively incorporates environment variables
// This feature, akin to $env/static/private, exclusively incorporates environment variables
...
...
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