您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

__init__.py 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. EmbeddingModel = {
  20. "Ollama": OllamaEmbed,
  21. "OpenAI": OpenAIEmbed,
  22. "Xinference": XinferenceEmbed,
  23. "Tongyi-Qianwen": DefaultEmbedding, #QWenEmbed,
  24. "ZHIPU-AI": ZhipuEmbed,
  25. "FastEmbed": FastEmbed,
  26. "Youdao": YoudaoEmbed,
  27. "DeepSeek": DefaultEmbedding
  28. }
  29. CvModel = {
  30. "OpenAI": GptV4,
  31. "Ollama": OllamaCV,
  32. "Xinference": XinferenceCV,
  33. "Tongyi-Qianwen": QWenCV,
  34. "ZHIPU-AI": Zhipu4V,
  35. "Moonshot": LocalCV
  36. }
  37. ChatModel = {
  38. "OpenAI": GptTurbo,
  39. "ZHIPU-AI": ZhipuChat,
  40. "Tongyi-Qianwen": QWenChat,
  41. "Ollama": OllamaChat,
  42. "Xinference": XinferenceChat,
  43. "Moonshot": MoonshotChat,
  44. "DeepSeek": DeepSeekChat
  45. }