mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🗃️ feat: Support .h Files (#7978)
This commit is contained in:
parent
0587a1cc7c
commit
d835f48307
1 changed files with 3 additions and 2 deletions
|
|
@ -115,7 +115,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|tab-separated-values|x-c\+\+|x-java|html|markdown|x-php|x-python|x-script\.python|x-ruby|x-tex|plain|css|vtt|javascript|csv))$/;
|
/^(text\/(x-c|x-csharp|tab-separated-values|x-c\+\+|x-h|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))$/;
|
||||||
|
|
@ -142,6 +142,7 @@ export const codeTypeMapping: { [key: string]: string } = {
|
||||||
c: 'text/x-c',
|
c: 'text/x-c',
|
||||||
cs: 'text/x-csharp',
|
cs: 'text/x-csharp',
|
||||||
cpp: 'text/x-c++',
|
cpp: 'text/x-c++',
|
||||||
|
h: 'text/x-h',
|
||||||
md: 'text/markdown',
|
md: 'text/markdown',
|
||||||
php: 'text/x-php',
|
php: 'text/x-php',
|
||||||
py: 'text/x-python',
|
py: 'text/x-python',
|
||||||
|
|
@ -159,7 +160,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|vtt|xml))$/,
|
/^(text\/(x-c|x-c\+\+|x-h|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