langchain_community.chat_models.everlyai.ChatEverlyAI¶
class langchain_community.chat_models.everlyai.ChatEverlyAI[source]¶
Bases: ChatOpenAI
EverlyAI Chat large language models.
To use, you should have the openai python package installed, and the
environment variable EVERLYAI_API_KEY set with your API key.
Alternatively, you can use the everlyai_api_key keyword argument.
Any parameters that are valid to be passed to the openai.create call can be passed
in, even if not explicitly saved on this class.
Example
from langchain_community.chat_models import ChatEverlyAI
chat = ChatEverlyAI(model_name="meta-llama/Llama-2-7b-chat-hf")
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
param available_models: Optional[Set[str]] = None¶
Available models from EverlyAI API.
param cache: Optional[bool] = None¶
Whether to cache the response.
param callback_manager: Optional[BaseCallbackManager] = None¶
Callback manager to add to the run trace.
param callbacks: Callbacks = None¶
Callbacks to add to the run trace.
param default_headers: Union[Mapping[str, str], None] = None¶
param default_query: Union[Mapping[str, object], None] = None¶
param everlyai_api_base: str = 'https://everlyai.xyz/hosted'¶
Base URL path for API requests.
param everlyai_api_key: Optional[str] = None¶
EverlyAI Endpoints API keys.
param http_client: Union[Any, None] = None¶
Optional httpx.Client.
param max_retries: int = 2¶