langchain/libs/community/tests/unit_tests/llms
Brad Erickson ecd72d26cf
community: Bugfix - correct Ollama API path to avoid HTTP 307 (#17895)
Sets the correct /api/generate path, without ending /, to reduce HTTP
requests.

Reference:

https://github.com/ollama/ollama/blob/efe040f8/docs/api.md#generate-request-streaming

Before:

    DEBUG: Starting new HTTP connection (1): localhost:11434
    DEBUG: http://localhost:11434 "POST /api/generate/ HTTP/1.1" 307 0
    DEBUG: http://localhost:11434 "POST /api/generate HTTP/1.1" 200 None

After:

    DEBUG: Starting new HTTP connection (1): localhost:11434
    DEBUG: http://localhost:11434 "POST /api/generate HTTP/1.1" 200 None
2024-02-22 11:59:55 -05:00
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
fake_chat_model.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
fake_llm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
konko.py community[minor]: Adding Konko Completion endpoint (#15570) 2024-01-23 18:22:32 -08:00
test_ai21.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_aleph_alpha.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_anyscale.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_bedrock.py community[minor]: Bedrock async methods (#12477) 2024-01-22 14:44:49 -08:00
test_callbacks.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_cerebriumai.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_databricks.py community[patch]: Support SerDe transform functions in Databricks LLM (#16752) 2024-02-08 13:09:50 -08:00
test_fireworks.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_forefrontai.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_gooseai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_gradient_ai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_imports.py community[minor]: Add SparkLLM to community (#17702) 2024-02-20 11:23:47 -08:00
test_llamafile.py community[minor]: Adds Llamafile as an LLM (#17431) 2024-02-14 11:15:24 -08:00
test_loading.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_minimax.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_oci_generative_ai.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
test_oci_model_deployment_endpoint.py community: add OCI Endpoint (#14250) 2023-12-20 11:52:20 -08:00
test_ollama.py community: Bugfix - correct Ollama API path to avoid HTTP 307 (#17895) 2024-02-22 11:59:55 -05:00
test_openai.py community[patch]: Fix chat openai unit test (#17124) 2024-02-07 22:08:26 -05:00
test_pipelineai.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_stochasticai.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_symblai_nebula.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_together.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_utils.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_watsonxllm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00