You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #
  2. # Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. from .embedding_model import *
  17. from .chat_model import *
  18. from .cv_model import *
  19. from .rerank_model import *
  20. from .sequence2txt_model import *
  21. from .tts_model import *
  22. EmbeddingModel = {
  23. "Ollama": OllamaEmbed,
  24. "LocalAI": LocalAIEmbed,
  25. "OpenAI": OpenAIEmbed,
  26. "Azure-OpenAI": AzureEmbed,
  27. "Xinference": XinferenceEmbed,
  28. "Tongyi-Qianwen": QWenEmbed,
  29. "ZHIPU-AI": ZhipuEmbed,
  30. "FastEmbed": FastEmbed,
  31. "Youdao": YoudaoEmbed,
  32. "BaiChuan": BaiChuanEmbed,
  33. "Jina": JinaEmbed,
  34. "BAAI": DefaultEmbedding,
  35. "Mistral": MistralEmbed,
  36. "Bedrock": BedrockEmbed,
  37. "Gemini": GeminiEmbed,
  38. "NVIDIA": NvidiaEmbed,
  39. "LM-Studio": LmStudioEmbed,
  40. "OpenAI-API-Compatible": OpenAI_APIEmbed,
  41. "cohere": CoHereEmbed,
  42. "TogetherAI": TogetherAIEmbed,
  43. "PerfXCloud": PerfXCloudEmbed,
  44. "Upstage": UpstageEmbed,
  45. "SILICONFLOW": SILICONFLOWEmbed,
  46. "Replicate": ReplicateEmbed,
  47. "BaiduYiyan": BaiduYiyanEmbed,
  48. "Voyage AI": VoyageEmbed,
  49. "HuggingFace":HuggingFaceEmbed,
  50. }
  51. CvModel = {
  52. "OpenAI": GptV4,
  53. "Azure-OpenAI": AzureGptV4,
  54. "Ollama": OllamaCV,
  55. "Xinference": XinferenceCV,
  56. "Tongyi-Qianwen": QWenCV,
  57. "ZHIPU-AI": Zhipu4V,
  58. "Moonshot": LocalCV,
  59. "Gemini": GeminiCV,
  60. "OpenRouter": OpenRouterCV,
  61. "LocalAI": LocalAICV,
  62. "NVIDIA": NvidiaCV,
  63. "LM-Studio": LmStudioCV,
  64. "StepFun":StepFunCV,
  65. "OpenAI-API-Compatible": OpenAI_APICV,
  66. "TogetherAI": TogetherAICV,
  67. "01.AI": YiCV,
  68. "Tencent Hunyuan": HunyuanCV
  69. }
  70. ChatModel = {
  71. "OpenAI": GptTurbo,
  72. "Azure-OpenAI": AzureChat,
  73. "ZHIPU-AI": ZhipuChat,
  74. "Tongyi-Qianwen": QWenChat,
  75. "Ollama": OllamaChat,
  76. "LocalAI": LocalAIChat,
  77. "Xinference": XinferenceChat,
  78. "Moonshot": MoonshotChat,
  79. "DeepSeek": DeepSeekChat,
  80. "VolcEngine": VolcEngineChat,
  81. "BaiChuan": BaiChuanChat,
  82. "MiniMax": MiniMaxChat,
  83. "Minimax": MiniMaxChat,
  84. "Mistral": MistralChat,
  85. "Gemini": GeminiChat,
  86. "Bedrock": BedrockChat,
  87. "Groq": GroqChat,
  88. "OpenRouter": OpenRouterChat,
  89. "StepFun": StepFunChat,
  90. "NVIDIA": NvidiaChat,
  91. "LM-Studio": LmStudioChat,
  92. "OpenAI-API-Compatible": OpenAI_APIChat,
  93. "cohere": CoHereChat,
  94. "LeptonAI": LeptonAIChat,
  95. "TogetherAI": TogetherAIChat,
  96. "PerfXCloud": PerfXCloudChat,
  97. "Upstage":UpstageChat,
  98. "novita.ai": NovitaAIChat,
  99. "SILICONFLOW": SILICONFLOWChat,
  100. "01.AI": YiChat,
  101. "Replicate": ReplicateChat,
  102. "Tencent Hunyuan": HunyuanChat,
  103. "XunFei Spark": SparkChat,
  104. "BaiduYiyan": BaiduYiyanChat,
  105. "Anthropic": AnthropicChat,
  106. "Google Cloud": GoogleChat,
  107. }
  108. RerankModel = {
  109. "BAAI": DefaultRerank,
  110. "Jina": JinaRerank,
  111. "Youdao": YoudaoRerank,
  112. "Xinference": XInferenceRerank,
  113. "NVIDIA": NvidiaRerank,
  114. "LM-Studio": LmStudioRerank,
  115. "OpenAI-API-Compatible": OpenAI_APIRerank,
  116. "cohere": CoHereRerank,
  117. "TogetherAI": TogetherAIRerank,
  118. "SILICONFLOW": SILICONFLOWRerank,
  119. "BaiduYiyan": BaiduYiyanRerank,
  120. "Voyage AI": VoyageRerank
  121. }
  122. Seq2txtModel = {
  123. "OpenAI": GPTSeq2txt,
  124. "Tongyi-Qianwen": QWenSeq2txt,
  125. "Ollama": OllamaSeq2txt,
  126. "Azure-OpenAI": AzureSeq2txt,
  127. "Xinference": XinferenceSeq2txt,
  128. "Tencent Cloud": TencentCloudSeq2txt
  129. }
  130. TTSModel = {
  131. "Fish Audio": FishAudioTTS,
  132. "Tongyi-Qianwen": QwenTTS,
  133. "OpenAI":OpenAITTS,
  134. "XunFei Spark":SparkTTS
  135. }