mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
🔉 feat: Extend text mimeTypes to support VTT (#4770)
* Extend text mimeTypes to support VTT * remove log entry
This commit is contained in:
parent
ead9e11134
commit
fe78210e0d
1 changed files with 3 additions and 2 deletions
|
|
@ -45,6 +45,7 @@ export const fullMimeTypesList = [
|
||||||
'text/x-tex',
|
'text/x-tex',
|
||||||
'text/plain',
|
'text/plain',
|
||||||
'text/css',
|
'text/css',
|
||||||
|
'text/vtt',
|
||||||
'image/jpeg',
|
'image/jpeg',
|
||||||
'text/javascript',
|
'text/javascript',
|
||||||
'image/gif',
|
'image/gif',
|
||||||
|
|
@ -109,7 +110,7 @@ export const excelMimeTypes =
|
||||||
/^application\/(vnd\.ms-excel|msexcel|x-msexcel|x-ms-excel|x-excel|x-dos_ms_excel|xls|x-xls|vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet)$/;
|
/^application\/(vnd\.ms-excel|msexcel|x-msexcel|x-ms-excel|x-excel|x-dos_ms_excel|xls|x-xls|vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet)$/;
|
||||||
|
|
||||||
export const textMimeTypes =
|
export const textMimeTypes =
|
||||||
/^(text\/(x-c|x-csharp|x-c\+\+|x-java|html|markdown|x-php|x-python|x-script\.python|x-ruby|x-tex|plain|css|javascript|csv))$/;
|
/^(text\/(x-c|x-csharp|x-c\+\+|x-java|html|markdown|x-php|x-python|x-script\.python|x-ruby|x-tex|plain|css|vtt|javascript|csv))$/;
|
||||||
|
|
||||||
export const applicationMimeTypes =
|
export const applicationMimeTypes =
|
||||||
/^(application\/(epub\+zip|csv|json|pdf|x-tar|typescript|vnd\.openxmlformats-officedocument\.(wordprocessingml\.document|presentationml\.presentation|spreadsheetml\.sheet)|xml|zip))$/;
|
/^(application\/(epub\+zip|csv|json|pdf|x-tar|typescript|vnd\.openxmlformats-officedocument\.(wordprocessingml\.document|presentationml\.presentation|spreadsheetml\.sheet)|xml|zip))$/;
|
||||||
|
|
@ -147,7 +148,7 @@ export const codeTypeMapping: { [key: string]: string } = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const retrievalMimeTypes = [
|
export const retrievalMimeTypes = [
|
||||||
/^(text\/(x-c|x-c\+\+|html|x-java|markdown|x-php|x-python|x-script\.python|x-ruby|x-tex|plain|xml))$/,
|
/^(text\/(x-c|x-c\+\+|html|x-java|markdown|x-php|x-python|x-script\.python|x-ruby|x-tex|plain|vtt|xml))$/,
|
||||||
/^(application\/(json|pdf|vnd\.openxmlformats-officedocument\.(wordprocessingml\.document|presentationml\.presentation)))$/,
|
/^(application\/(json|pdf|vnd\.openxmlformats-officedocument\.(wordprocessingml\.document|presentationml\.presentation)))$/,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue