langchain/libs
Jiejun Tan 2be66a38d8
huggingface: Fix huggingface tei support (#22653)
Update former pull request:
https://github.com/langchain-ai/langchain/pull/22595.

Modified
`libs/partners/huggingface/langchain_huggingface/embeddings/huggingface_endpoint.py`,
where the API call function does not match current [Text Embeddings
Inference
API](https://huggingface.github.io/text-embeddings-inference/#/Text%20Embeddings%20Inference/embed).
One example is:
```json
{
  "inputs": "string",
  "normalize": true,
  "truncate": false
}
```
Parameters in `_model_kwargs` are not passed properly in the latest
version. By the way, the issue *[why cause 413?
#50](https://github.com/huggingface/text-embeddings-inference/issues/50)*
might be solved.
2024-07-03 13:30:29 -07:00
..
cli cli[patch]: ruff 0.5 (#23833) 2024-07-03 18:33:15 +00:00
community huggingface: Fix huggingface tei support (#22653) 2024-07-03 13:30:29 -07:00
core core[patch]: Fix logic in BaseChatModel that processes the llm string that is used as a key for caching chat models responses (#23842) 2024-07-03 16:23:55 -04:00
experimental infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
langchain langchain: update declarative_base import (#20056) 2024-07-03 15:52:35 -04:00
partners huggingface: Fix huggingface tei support (#22653) 2024-07-03 13:30:29 -07:00
standard-tests anthropic[patch]: use core output parsers for structured output (#23776) 2024-07-02 16:15:26 -04:00
text-splitters infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00