You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/chat_models
Aymeric Roucher 0d294760e7
Community: Fuse HuggingFace Endpoint-related classes into one (#17254)
## Description
Fuse HuggingFace Endpoint-related classes into one:
-
[HuggingFaceHub](5ceaf784f3/libs/community/langchain_community/llms/huggingface_hub.py)
-
[HuggingFaceTextGenInference](5ceaf784f3/libs/community/langchain_community/llms/huggingface_text_gen_inference.py)
- and
[HuggingFaceEndpoint](5ceaf784f3/libs/community/langchain_community/llms/huggingface_endpoint.py)

Are fused into
- HuggingFaceEndpoint

## Issue
The deduplication of classes was creating a lack of clarity, and
additional effort to develop classes leads to issues like [this
hack](5ceaf784f3/libs/community/langchain_community/llms/huggingface_endpoint.py (L159)).

## Dependancies

None, this removes dependancies.

## Twitter handle

If you want to post about this: @AymericRoucher

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
7 months ago
..
__init__.py community[minor]: integrate chat models with Yuan2.0 (#16575) 7 months ago
anthropic.py [community] fix anthropic streaming (#16682) 8 months ago
anyscale.py community[patch]: Modify LLMs/Anyscale work with OpenAI API v1 (#14206) 8 months ago
azure_openai.py community[patch]: more deprecations (#15782) 9 months ago
azureml_endpoint.py community[patch]: docstrings (#16810) 8 months ago
baichuan.py community: Fix Baichuan Chat. (#15207) 8 months ago
baidu_qianfan_endpoint.py community[patch]: fix qianfan chat stream calling caused exception (#13800) 9 months ago
bedrock.py community[patch]: BedrockChat -> Support Titan express as chat model (#15408) 8 months ago
cohere.py docs: update cohere chat integration (#15562) 9 months ago
databricks.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
deepinfra.py infra: add print rule to ruff (#16221) 8 months ago
edenai.py community[patch]: chat model mypy fixes (#17061) 8 months ago
ernie.py community[patch]: chat model mypy fixes (#17061) 8 months ago
everlyai.py Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
fireworks.py docs: docstrings `langchain_community` update (#14889) 9 months ago
gigachat.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
google_palm.py Refactor: use SecretStr for palm chat-model (#15100) 9 months ago
gpt_router.py community[patch]: docstrings (#16810) 8 months ago
huggingface.py Community: Fuse HuggingFace Endpoint-related classes into one (#17254) 7 months ago
human.py infra: add print rule to ruff (#16221) 8 months ago
hunyuan.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
javelin_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 8 months ago
jinachat.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
konko.py community[patch]: chat model mypy fixes (#17061) 8 months ago
litellm.py community[patch]: Fix error message when litellm is not installed (#16316) 8 months ago
litellm_router.py community[minor]: Add LiteLLM Router Integration (#15588) 8 months ago
llama_edge.py feat: Implement `stream` interface (#15875) 8 months ago
meta.py docs: docstrings `langchain_community` update (#14889) 9 months ago
minimax.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
mlflow.py Propagate context vars in all classes/methods 9 months ago
mlflow_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 8 months ago
ollama.py community[patch]: Invoke callback prior to yielding token (#17348) 7 months ago
openai.py community[patch]: chat model mypy fixes (#17061) 8 months ago
pai_eas_endpoint.py Propagate context vars in all classes/methods 9 months ago
promptlayer_openai.py Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
sparkllm.py community[minor]: Add iFlyTek Spark LLM chat model support (#13389) 8 months ago
tongyi.py community[patch]: chat model mypy fixes (#17061) 8 months ago
vertexai.py community[patch]: chat model mypy fixes (#17061) 8 months ago
volcengine_maas.py community[patch]: docstrings (#16810) 8 months ago
yandex.py community[patch]: chat model mypy fixes (#17061) 8 months ago
yuan2.py community[minor]: integrate chat models with Yuan2.0 (#16575) 7 months ago
zhipuai.py community[patch]: docstrings (#16810) 8 months ago