Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

__init__.py 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. }
  50. CvModel = {
  51. "OpenAI": GptV4,
  52. "Azure-OpenAI": AzureGptV4,
  53. "Ollama": OllamaCV,
  54. "Xinference": XinferenceCV,
  55. "Tongyi-Qianwen": QWenCV,
  56. "ZHIPU-AI": Zhipu4V,
  57. "Moonshot": LocalCV,
  58. "Gemini": GeminiCV,
  59. "OpenRouter": OpenRouterCV,
  60. "LocalAI": LocalAICV,
  61. "NVIDIA": NvidiaCV,
  62. "LM-Studio": LmStudioCV,
  63. "StepFun":StepFunCV,
  64. "OpenAI-API-Compatible": OpenAI_APICV,
  65. "TogetherAI": TogetherAICV,
  66. "01.AI": YiCV,
  67. "Tencent Hunyuan": HunyuanCV
  68. }
  69. ChatModel = {
  70. "OpenAI": GptTurbo,
  71. "Azure-OpenAI": AzureChat,
  72. "ZHIPU-AI": ZhipuChat,
  73. "Tongyi-Qianwen": QWenChat,
  74. "Ollama": OllamaChat,
  75. "LocalAI": LocalAIChat,
  76. "Xinference": XinferenceChat,
  77. "Moonshot": MoonshotChat,
  78. "DeepSeek": DeepSeekChat,
  79. "VolcEngine": VolcEngineChat,
  80. "BaiChuan": BaiChuanChat,
  81. "MiniMax": MiniMaxChat,
  82. "Minimax": MiniMaxChat,
  83. "Mistral": MistralChat,
  84. "Gemini": GeminiChat,
  85. "Bedrock": BedrockChat,
  86. "Groq": GroqChat,
  87. "OpenRouter": OpenRouterChat,
  88. "StepFun": StepFunChat,
  89. "NVIDIA": NvidiaChat,
  90. "LM-Studio": LmStudioChat,
  91. "OpenAI-API-Compatible": OpenAI_APIChat,
  92. "cohere": CoHereChat,
  93. "LeptonAI": LeptonAIChat,
  94. "TogetherAI": TogetherAIChat,
  95. "PerfXCloud": PerfXCloudChat,
  96. "Upstage":UpstageChat,
  97. "novita.ai": NovitaAIChat,
  98. "SILICONFLOW": SILICONFLOWChat,
  99. "01.AI": YiChat,
  100. "Replicate": ReplicateChat,
  101. "Tencent Hunyuan": HunyuanChat,
  102. "XunFei Spark": SparkChat,
  103. "BaiduYiyan": BaiduYiyanChat,
  104. "Anthropic": AnthropicChat,
  105. "Google Cloud": GoogleChat,
  106. }
  107. RerankModel = {
  108. "BAAI": DefaultRerank,
  109. "Jina": JinaRerank,
  110. "Youdao": YoudaoRerank,
  111. "Xinference": XInferenceRerank,
  112. "NVIDIA": NvidiaRerank,
  113. "LM-Studio": LmStudioRerank,
  114. "OpenAI-API-Compatible": OpenAI_APIRerank,
  115. "cohere": CoHereRerank,
  116. "TogetherAI": TogetherAIRerank,
  117. "SILICONFLOW": SILICONFLOWRerank,
  118. "BaiduYiyan": BaiduYiyanRerank,
  119. "Voyage AI": VoyageRerank
  120. }
  121. Seq2txtModel = {
  122. "OpenAI": GPTSeq2txt,
  123. "Tongyi-Qianwen": QWenSeq2txt,
  124. "Ollama": OllamaSeq2txt,
  125. "Azure-OpenAI": AzureSeq2txt,
  126. "Xinference": XinferenceSeq2txt,
  127. "Tencent Cloud": TencentCloudSeq2txt
  128. }
  129. TTSModel = {
  130. "Fish Audio": FishAudioTTS,
  131. "Tongyi-Qianwen": QwenTTS,
  132. "OpenAI":OpenAITTS
  133. }