llama-index
124 строки · 3.9 Кб
1from llama_index.legacy.core.llms.types import (
2ChatMessage,
3ChatResponse,
4ChatResponseAsyncGen,
5ChatResponseGen,
6CompletionResponse,
7CompletionResponseAsyncGen,
8CompletionResponseGen,
9LLMMetadata,
10MessageRole,
11)
12from llama_index.legacy.llms.ai21 import AI21
13from llama_index.legacy.llms.anthropic import Anthropic
14from llama_index.legacy.llms.anyscale import Anyscale
15from llama_index.legacy.llms.azure_openai import AzureOpenAI
16from llama_index.legacy.llms.bedrock import Bedrock
17from llama_index.legacy.llms.clarifai import Clarifai
18from llama_index.legacy.llms.cohere import Cohere
19from llama_index.legacy.llms.custom import CustomLLM
20from llama_index.legacy.llms.dashscope import DashScope, DashScopeGenerationModels
21from llama_index.legacy.llms.everlyai import EverlyAI
22from llama_index.legacy.llms.gemini import Gemini
23from llama_index.legacy.llms.gradient import (
24GradientBaseModelLLM,
25GradientModelAdapterLLM,
26)
27from llama_index.legacy.llms.huggingface import HuggingFaceInferenceAPI, HuggingFaceLLM
28from llama_index.legacy.llms.konko import Konko
29from llama_index.legacy.llms.langchain import LangChainLLM
30from llama_index.legacy.llms.litellm import LiteLLM
31from llama_index.legacy.llms.llama_cpp import LlamaCPP
32from llama_index.legacy.llms.llm import LLM
33from llama_index.legacy.llms.localai import LOCALAI_DEFAULTS, LocalAI
34from llama_index.legacy.llms.mistral import MistralAI
35from llama_index.legacy.llms.mock import MockLLM
36from llama_index.legacy.llms.monsterapi import MonsterLLM
37from llama_index.legacy.llms.neutrino import Neutrino
38from llama_index.legacy.llms.nvidia_tensorrt import LocalTensorRTLLM
39from llama_index.legacy.llms.nvidia_triton import NvidiaTriton
40from llama_index.legacy.llms.ollama import Ollama
41from llama_index.legacy.llms.openai import OpenAI
42from llama_index.legacy.llms.openai_like import OpenAILike
43from llama_index.legacy.llms.openllm import OpenLLM, OpenLLMAPI
44from llama_index.legacy.llms.openrouter import OpenRouter
45from llama_index.legacy.llms.palm import PaLM
46from llama_index.legacy.llms.perplexity import Perplexity
47from llama_index.legacy.llms.portkey import Portkey
48from llama_index.legacy.llms.predibase import PredibaseLLM
49from llama_index.legacy.llms.replicate import Replicate
50from llama_index.legacy.llms.sagemaker_llm_endpoint import (
51SageMakerLLM,
52SageMakerLLMEndPoint,
53)
54from llama_index.legacy.llms.together import TogetherLLM
55from llama_index.legacy.llms.vertex import Vertex
56from llama_index.legacy.llms.vllm import Vllm, VllmServer
57from llama_index.legacy.llms.watsonx import WatsonX
58from llama_index.legacy.llms.xinference import Xinference
59from llama_index.legacy.multi_modal_llms.dashscope import (
60DashScopeMultiModal,
61DashScopeMultiModalModels,
62)
63
64__all__ = [
65"AI21",
66"Anthropic",
67"Anyscale",
68"AzureOpenAI",
69"Bedrock",
70"ChatMessage",
71"ChatResponse",
72"ChatResponseAsyncGen",
73"LLM",
74"ChatResponseGen",
75"Clarifai",
76"Cohere",
77"CompletionResponse",
78"CompletionResponseAsyncGen",
79"CompletionResponseGen",
80"CustomLLM",
81"EverlyAI",
82"Gemini",
83"GradientBaseModelLLM",
84"GradientModelAdapterLLM",
85"HuggingFaceInferenceAPI",
86"HuggingFaceLLM",
87"Konko",
88"LLMMetadata",
89"LangChainLLM",
90"LiteLLM",
91"LlamaCPP",
92"LocalAI",
93"LOCALAI_DEFAULTS",
94"LocalTensorRTLLM",
95"MessageRole",
96"MockLLM",
97"MonsterLLM",
98"Neutrino",
99"NvidiaTriton",
100"MistralAI",
101"Ollama",
102"OpenAI",
103"OpenAILike",
104"OpenLLM",
105"OpenLLMAPI",
106"OpenRouter",
107"PaLM",
108"Perplexity",
109"Portkey",
110"PredibaseLLM",
111"Replicate",
112"SageMakerLLM",
113"SageMakerLLMEndPoint", # deprecated
114"TogetherLLM",
115"WatsonX",
116"Xinference",
117"Vllm",
118"VllmServer",
119"Vertex",
120"DashScope",
121"DashScopeGenerationModels",
122"DashScopeMultiModalModels",
123"DashScopeMultiModal",
124]
125