Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

__init__.py 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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": HuEmbedding, #QWenEmbed,
  24. "ZHIPU-AI": ZhipuEmbed,
  25. "FastEmbed": FastEmbed,
  26. "Youdao": YoudaoEmbed
  27. }
  28. CvModel = {
  29. "OpenAI": GptV4,
  30. "Ollama": OllamaCV,
  31. "Xinference": XinferenceCV,
  32. "Tongyi-Qianwen": QWenCV,
  33. "ZHIPU-AI": Zhipu4V,
  34. "Moonshot": LocalCV
  35. }
  36. ChatModel = {
  37. "OpenAI": GptTurbo,
  38. "ZHIPU-AI": ZhipuChat,
  39. "Tongyi-Qianwen": QWenChat,
  40. "Ollama": OllamaChat,
  41. "Xinference": XinferenceChat,
  42. "Moonshot": MoonshotChat
  43. }