mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-18 17:11:25 +00:00
Thank you for contributing to LangChain! - [ ] **HuggingFaceInferenceAPIEmbeddings**: "Additional Headers" - Where: langchain, community, embeddings. huggingface.py. - Community: add additional headers when needed by custom HuggingFace TEI embedding endpoints. HuggingFaceInferenceAPIEmbeddings" - [ ] **PR message**: ***Delete this entire checklist*** and replace with - **Description:** Adding the `additional_headers` to be passed to requests library if needed - **Dependencies:** none - [ ] **Add tests and docs**: If you're adding a new integration, please include 1. Tested with locally available TEI endpoints with and without `additional_headers` 2. Example Usage ```python embeddings=HuggingFaceInferenceAPIEmbeddings( api_key=MY_CUSTOM_API_KEY, api_url=MY_CUSTOM_TEI_URL, additional_headers={ "Content-Type": "application/json" } ) ``` Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17. --------- Co-authored-by: Massimiliano Pronesti <massimiliano.pronesti@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
aleph_alpha.py | ||
anyscale.py | ||
awa.py | ||
azure_openai.py | ||
baichuan.py | ||
baidu_qianfan_endpoint.py | ||
bedrock.py | ||
bookend.py | ||
clarifai.py | ||
cloudflare_workersai.py | ||
cohere.py | ||
dashscope.py | ||
databricks.py | ||
deepinfra.py | ||
edenai.py | ||
elasticsearch.py | ||
embaas.py | ||
ernie.py | ||
fake.py | ||
fastembed.py | ||
gigachat.py | ||
google_palm.py | ||
gpt4all.py | ||
gradient_ai.py | ||
huggingface_hub.py | ||
huggingface.py | ||
infinity_local.py | ||
infinity.py | ||
itrex.py | ||
javelin_ai_gateway.py | ||
jina.py | ||
johnsnowlabs.py | ||
laser.py | ||
llamacpp.py | ||
llamafile.py | ||
llm_rails.py | ||
localai.py | ||
minimax.py | ||
mlflow_gateway.py | ||
mlflow.py | ||
modelscope_hub.py | ||
mosaicml.py | ||
nemo.py | ||
nlpcloud.py | ||
oci_generative_ai.py | ||
octoai_embeddings.py | ||
ollama.py | ||
openai.py | ||
openvino.py | ||
optimum_intel.py | ||
oracleai.py | ||
premai.py | ||
sagemaker_endpoint.py | ||
sambanova.py | ||
self_hosted_hugging_face.py | ||
self_hosted.py | ||
sentence_transformer.py | ||
solar.py | ||
spacy_embeddings.py | ||
sparkllm.py | ||
tensorflow_hub.py | ||
text2vec.py | ||
titan_takeoff.py | ||
vertexai.py | ||
volcengine.py | ||
voyageai.py | ||
xinference.py | ||
yandex.py |