Refactor code to deprecate text embedding

This commit is contained in:
2025-02-11 02:34:55 +08:00
parent 5467f72bd7
commit 32d82c99ec
17 changed files with 414 additions and 306 deletions

10
app/constants.py Normal file
View File

@@ -0,0 +1,10 @@
SUPPORT_LANGUAGE = {
'c': ['.c'],
'cpp': ['.cc', '.cpp'],
'go': ['.go'],
'php': ['php', 'php3', 'php4', 'php5', 'phtml'],
'jsp': ['.jsp'],
'java': ['.java'],
'python': ['.py'],
'javascript': ['.js'],
}