mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 14:02:29 +00:00
add svelte type to RAG
This commit is contained in:
parent
c7cee3ec25
commit
6070e6bcd1
@ -166,7 +166,7 @@ def store_doc(
|
|||||||
"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"
|
"rb", "rs", "db2", "scala", "bash", "swift", "vue", "svelte"
|
||||||
]
|
]
|
||||||
file_ext=file.filename.split(".")[-1].lower()
|
file_ext=file.filename.split(".")[-1].lower()
|
||||||
if file.content_type == "application/octet-stream" and file_ext not in (octet_markdown + octet_plain):
|
if file.content_type == "application/octet-stream" and file_ext not in (octet_markdown + octet_plain):
|
||||||
|
Loading…
Reference in New Issue
Block a user