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/tests/unit_tests/embeddings
shahrin014 f51e6a35ba
community[patch]: OllamaEmbeddings - Pass headers to post request (#16880)
## Feature
- Set additional headers in constructor
- Headers will be sent in post request

This feature is useful if deploying Ollama on a cloud service such as
hugging face, which requires authentication tokens to be passed in the
request header.

## Tests
- Test if header is passed
- Test if header is not passed

Similar to https://github.com/langchain-ai/langchain/pull/15881

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
6 months ago
..
__init__.py
test_deterministic_embedding.py
test_edenai.py infra: add print rule to ruff (#16221) 8 months ago
test_embaas.py infra: add print rule to ruff (#16221) 8 months ago
test_gradient_ai.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
test_huggingface.py
test_imports.py community[minor]: Add solar embedding (#19761) 6 months ago
test_infinity.py
test_infinity_local.py community[minor]: infinity embedding local option (#17671) 7 months ago
test_llamafile.py community[minor]: llamafile embeddings support (#17976) 7 months ago
test_llm_rails.py infra: add print rule to ruff (#16221) 8 months ago
test_oci_gen_ai_embedding.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
test_ollama.py community[patch]: OllamaEmbeddings - Pass headers to post request (#16880) 6 months ago
test_openai.py community[patch]: Fix chat openai unit test (#17124) 8 months ago
test_premai.py community[minor]: Prem AI langchain integration (#19113) 6 months ago
test_vertexai.py