Bagatur
3b1eb1f828
community[patch]: chat hf typing fix ( #18693 )
2024-03-07 17:06:38 -08:00
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 >
2024-02-19 10:33:15 -08:00
Bagatur
66e45e8ab7
community[patch]: chat model mypy fixes ( #17061 )
...
Related to #17048
2024-02-05 13:42:59 -08:00
Harrison Chase
4eda647fdd
infra: add -p to mkdir in lint steps ( #17013 )
...
Previously, if this did not find a mypy cache then it wouldnt run
this makes it always run
adding mypy ignore comments with existing uncaught issues to unblock other prs
---------
Co-authored-by: Erick Friis <erick@langchain.dev >
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
2024-02-05 11:22:06 -08:00
Jacob Lee
1b01ee0e3c
community[minor]: add hf chat wrapper ( #14736 )
...
Builds on #14040 with community refactor merged and notebook updated.
Note that with this refactor, models will be imported from
`langchain_community.chat_models.huggingface` rather than the main
`langchain` repo.
---------
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com >
Signed-off-by: ugm2 <unaigaraymaestre@gmail.com >
Signed-off-by: Yuchen Liang <yuchenl3@andrew.cmu.edu >
Co-authored-by: Andrew Reed <andrew.reed.r@gmail.com >
Co-authored-by: Andrew Reed <areed1242@gmail.com >
Co-authored-by: A-Roucher <aymeric.roucher@gmail.com >
Co-authored-by: Aymeric Roucher <69208727+A-Roucher@users.noreply.github.com >
2023-12-21 12:28:30 -05:00